Filter interviews by
Find consecutive subarrays in two integer arrays with sum > 6.
Iterate through both arrays to find consecutive subarrays.
Calculate the sum of each subarray and check if it is greater than 6.
Return the subarray with sum > 6.
Filter a specific name from a string array
Iterate through the array and check each element for the desired name
Use a conditional statement to filter out the name from the array
Consider using Java 8 streams and lambda expressions for a more concise solution
The synchronized keyword in Java ensures that a method or block is accessed by only one thread at a time, preventing thread interference.
Used to control access to a method or block by multiple threads.
Can be applied to methods (synchronized method) or blocks (synchronized block).
Example of synchronized method: 'public synchronized void methodName() { ... }'
Example of synchronized block: 'synchronized(this) { ... }...
Interfaces define contracts for classes, while abstract classes provide a base with shared code and can have state.
An interface can only declare methods (no implementation), while an abstract class can have both abstract and concrete methods.
A class can implement multiple interfaces but can inherit from only one abstract class.
Interfaces are used for defining capabilities (e.g., Comparable), while abstract classes...
JWT Tokens are a type of token used for authentication and authorization in web applications.
JWT stands for JSON Web Token
JWT tokens are compact, URL-safe tokens that can be easily transmitted between parties
JWT tokens consist of three parts: header, payload, and signature
JWT tokens are often used in stateless authentication systems
Example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6I...
The == operator compares memory addresses, while the equals method compares the actual content of objects.
The == operator checks if two object references point to the same memory address.
The equals method checks if two objects have the same content.
Example: String str1 = new String("hello"); String str2 = new String("hello"); str1 == str2 will return false, but str1.equals(str2) will return true.
Spring Boot applications can be deployed using various methods such as embedded servers, Docker containers, and cloud platforms.
Deploying as a standalone JAR file using embedded servers like Tomcat or Jetty
Building a Docker image and running the application in a container
Deploying to cloud platforms like AWS, Azure, or Google Cloud Platform
Using CI/CD pipelines for automated deployment
Dependency Injection is a design pattern in Spring Boot where the dependencies of a class are injected from the outside.
In Spring Boot, Dependency Injection is achieved through inversion of control, where the control of creating and managing objects is given to the Spring framework.
Dependencies can be injected into a class using constructor injection, setter injection, or field injection.
By using Dependency Inject...
Stages in Jenkins are the different steps in a Jenkins pipeline that define the actions to be executed.
Stages help break down the pipeline into smaller, manageable sections
Each stage can have multiple steps to be executed
Stages can be sequential or parallel
Common stages include build, test, deploy, and notify
Checked exceptions are checked at compile time, while unchecked exceptions are not.
Checked exceptions must be either caught or declared in the method signature using 'throws' keyword
Unchecked exceptions do not need to be caught or declared
Examples of checked exceptions: IOException, SQLException
Examples of unchecked exceptions: NullPointerException, ArrayIndexOutOfBoundsException
I applied via Naukri.com and was interviewed in Jun 2024. There was 1 interview round.
Abstraction focuses on hiding implementation details, while encapsulation bundles data and methods into a single unit.
Abstraction allows us to focus on the essential features of an object while hiding unnecessary details.
Encapsulation helps in data hiding by restricting access to certain components of an object.
Abstraction is achieved through abstract classes and interfaces in Java.
Encapsulation is implemented using ac...
Hash table is a data structure that stores key-value pairs and allows for fast retrieval of values based on keys.
Hash table uses a hash function to map keys to indexes in an array.
It provides constant time complexity O(1) for insertion, deletion, and retrieval operations.
Collisions can occur when two keys hash to the same index, which can be resolved using techniques like chaining or open addressing.
PUT is used to update or replace an existing resource, while POST is used to create a new resource.
PUT is idempotent, meaning multiple identical requests will have the same effect as a single request.
POST is not idempotent, meaning multiple identical requests may have different effects.
PUT is used to update an existing resource at a specific URI.
POST is used to create a new resource under a specific URI.
PUT requests ar...
Spring Boot applications can be deployed using various methods such as embedded servers, Docker containers, and cloud platforms.
Deploying as a standalone JAR file using embedded servers like Tomcat or Jetty
Building a Docker image and running the application in a container
Deploying to cloud platforms like AWS, Azure, or Google Cloud Platform
Using CI/CD pipelines for automated deployment
Garbage collection in Java is the process of automatically reclaiming memory that is no longer in use by the program.
Garbage collection is performed by the JVM to free up memory occupied by objects that are no longer referenced by the program.
It helps in preventing memory leaks and ensures efficient memory management.
Java provides automatic garbage collection, so developers do not have to manually free up memory.
Exampl...
Various design patterns like Singleton, Factory, Observer, etc. are used to solve common problems in software development.
Singleton pattern ensures a class has only one instance and provides a global point of access to it.
Factory pattern creates objects without specifying the exact class of object that will be created.
Observer pattern defines a one-to-many dependency between objects so that when one object changes stat...
I applied via Approached by Company and was interviewed in Jun 2024. There were 3 interview rounds.
Multithreading in Spring Boot allows for concurrent execution of tasks, improving performance and responsiveness.
Spring Boot provides support for multithreading through the use of @Async annotation.
By annotating a method with @Async, it will be executed in a separate thread.
ThreadPoolTaskExecutor can be configured to control the number of threads used for executing async methods.
Example: @Async public void asyncMethod(...
I applied via Naukri.com and was interviewed in Jun 2024. There was 1 interview round.
Executor Service is a framework provided by Java to manage and control the execution of tasks in a multithreaded environment.
It provides a way to manage threads and execute tasks asynchronously.
It allows for the reuse of threads instead of creating new ones for each task.
It can handle task scheduling, thread pooling, and thread lifecycle management.
Example: Executors.newFixedThreadPool(5) creates a thread pool with 5 t...
I applied via Company Website and was interviewed in May 2024. There was 1 interview round.
Top trending discussions
posted on 7 Jul 2024
I applied via Approached by Company and was interviewed in Mar 2024. There were 2 interview rounds.
Code review to find bugs
Interface features include abstraction, multiple inheritance, and contract enforcement.
Abstraction: Interfaces allow for the definition of methods without implementation, providing a blueprint for classes to follow.
Multiple Inheritance: Java interfaces support multiple inheritance, allowing a class to implement multiple interfaces.
Contract Enforcement: Interfaces define a contract that implementing classes must adhere ...
I applied via Naukri.com
I applied via Walk-in and was interviewed before Mar 2021. There were 3 interview rounds.
Aptitude test
Current affairs
posted on 20 May 2021
I applied via Referral and was interviewed in Nov 2020. There were 4 interview rounds.
I applied via Recruitment Consulltant and was interviewed before Oct 2021. There were 4 interview rounds.
Reasoning and aptitude questions are given
Overloading is a concept in programming where multiple functions can have the same name but different parameters.
Functions with the same name but different parameters can be defined in a class
Overloading allows for flexibility in function usage
Example: void print(int num) and void print(string text) are overloaded functions
Inheritance in software development allows a class to inherit properties and behaviors from another class.
Inheritance allows a subclass to reuse code from a superclass
Subclass can also add new functionalities or override existing ones
Example: Animal class can be a superclass with properties like name and age, while Dog class can inherit from Animal and add a method bark()
Some of the top questions asked at the Litmus7 Systems Consulting Java Developer interview -
based on 4 interview experiences
Difficulty level
Duration
Technology Specialist
130
salaries
| ₹9 L/yr - ₹28 L/yr |
Senior Engineer
125
salaries
| ₹8.5 L/yr - ₹15 L/yr |
Senior Software Engineer
55
salaries
| ₹11.1 L/yr - ₹19 L/yr |
Associate Engineer
35
salaries
| ₹3.6 L/yr - ₹7.2 L/yr |
Software Engineer
32
salaries
| ₹3.6 L/yr - ₹10 L/yr |
Saama Technologies
Jumio
DISYS
Data-Core Systems