Filter interviews by
Spring MVC is a framework for building web applications in Java, following the Model-View-Controller design pattern.
1. Client sends a request to the DispatcherServlet.
2. DispatcherServlet maps the request to a specific Controller based on URL.
3. The Controller processes the request and interacts with the Model (business logic).
4. The Model returns data to the Controller.
5. The Controller selects a View (JSP, Thyme...
Git commands are used to interact with the version control system Git.
git clone: Used to clone a repository from a remote server to your local machine.
git add: Adds changes in the working directory to the staging area.
git commit: Records changes to the repository.
git push: Pushes changes to a remote repository.
git pull: Fetches changes from a remote repository and merges them into the local branch.
Composition in Java is a design technique where a class contains an object of another class to reuse its functionality.
Composition is a 'has-a' relationship, where one class contains an instance of another class.
It allows for code reuse and flexibility in design.
Example: A Car class may contain an Engine object, utilizing its functionality without inheriting from it.
Use the equals() method or compareTo() method to compare two strings in Java.
Use the equals() method to compare two strings for content equality.
Use the compareTo() method to compare two strings lexicographically.
Consider using the equalsIgnoreCase() method for case-insensitive comparison.
Sleep method pauses the current thread for a specified amount of time, while join method waits for a thread to finish execution.
Sleep method is a static method of Thread class, while join method is an instance method.
Sleep method does not release the lock on the object, while join method does.
Sleep method takes a specified time in milliseconds as an argument, while join method waits until the thread it is called o...
Data encapsulation is the concept of bundling data with the methods that operate on that data, restricting access to the data.
Data encapsulation is a fundamental principle of object-oriented programming.
It allows for the data to be hidden and only accessible through the defined methods.
Encapsulation helps in achieving data abstraction and information hiding.
Example: In a class representing a car, the variables lik...
No, static methods cannot be overridden in Java.
Static methods belong to the class itself, not to any specific instance of the class.
Subclasses can have static methods with the same signature as the parent class, but it is not considered overriding.
Example: Parent class has a static method 'display()', and subclass also has a static method 'display()', this is not overriding.
Overloading allows multiple methods with the same name but different parameters; overriding redefines a method in a subclass.
Overloading occurs within the same class.
Example of overloading: 'int add(int a, int b)' and 'double add(double a, double b)'.
Overriding occurs in a subclass, redefining a method from the superclass.
Example of overriding: 'void display()' in a subclass that changes behavior from the supercla...
Point cut is a term used in Aspect-Oriented Programming (AOP) to define where certain aspects should be applied in the code.
Point cut specifies the join points in the code where advice should be applied.
It helps in separating the cross-cutting concerns from the main business logic.
Examples of point cuts include method executions, field accesses, and exception handling.
Joint point is a point in the execution of a program where an aspect can be applied.
Joint point is a specific point in the execution of a program where additional behavior can be introduced.
It is a point in the code where the aspect code can be weaved in.
Examples include method calls, exception handling, variable assignments, etc.
I applied via Referral and was interviewed before May 2023. There were 3 interview rounds.
I enjoy coding, hiking, and photography, which help me unwind and fuel my creativity outside of work.
Coding personal projects, like a weather app using React.
Hiking in local trails, exploring nature and staying active.
Photography, capturing landscapes and urban scenes on weekends.
Point cut is a term used in Aspect-Oriented Programming (AOP) to define where certain aspects should be applied in the code.
Point cut specifies the join points in the code where advice should be applied.
It helps in separating the cross-cutting concerns from the main business logic.
Examples of point cuts include method executions, field accesses, and exception handling.
Joint point is a point in the execution of a program where an aspect can be applied.
Joint point is a specific point in the execution of a program where additional behavior can be introduced.
It is a point in the code where the aspect code can be weaved in.
Examples include method calls, exception handling, variable assignments, etc.
I know various docker commands for managing containers and images.
docker run - to create and start a new container
docker ps - to list all running containers
docker stop - to stop a running container
docker images - to list all available images
docker pull - to download an image from a registry
docker build - to build an image from a Dockerfile
A Dockerfile is a text document that contains all the commands a user could call on the command line to assemble an image.
Start with a base image using the FROM keyword
Use the RUN keyword to execute commands in the image
Use the COPY keyword to add files from your Docker client's current directory
Use the CMD keyword to specify the command to run when the container starts
Actuator in Spring Boot is a set of tools and features that help monitor and manage your application.
Actuator provides endpoints to monitor application health, metrics, info, etc.
It allows you to interact with your application through HTTP endpoints.
Examples of endpoints include /actuator/health, /actuator/metrics, /actuator/info.
Actuator can be customized and secured based on your requirements.
The project involves a web application that streamlines user interactions through a robust backend and responsive frontend.
User Authentication: Implemented secure login and registration using JWT tokens to manage user sessions effectively.
RESTful API: Developed a RESTful API using Spring Boot to handle data requests, ensuring smooth communication between frontend and backend.
Database Integration: Utilized PostgreSQL fo...
ArrayList is not synchronized while Vector is synchronized.
ArrayList is not thread-safe, while Vector is thread-safe.
Vector is slower than ArrayList because of synchronization.
ArrayList is a part of the Java Collection Framework, while Vector is a legacy class.
Example: ArrayList<String> list = new ArrayList<>(); Vector<String> vector = new Vector<>();
No, static methods cannot be overridden in Java.
Static methods belong to the class itself, not to any specific instance of the class.
Subclasses can have static methods with the same signature as the parent class, but it is not considered overriding.
Example: Parent class has a static method 'display()', and subclass also has a static method 'display()', this is not overriding.
Sample java basic problems.
Time complexity of a sample program.
Pseudo code of a given problem.
Implementation of a binary search tree.
Wetting an api using springboot with proper implementation of exception handling.
Top trending discussions
posted on 9 May 2017
I appeared for an interview before May 2016.
I appeared for an interview in May 2025, where I was asked the following questions.
Java is a versatile, object-oriented programming language designed for portability across platforms and ease of use.
Object-Oriented: Java uses objects to represent data and methods, promoting code reusability. Example: Classes and objects.
Platform-Independent: Java code is compiled into bytecode, which can run on any device with a Java Virtual Machine (JVM).
Rich API: Java provides a comprehensive set of libraries for t...
The JVM enables Java applications to run on any device by providing an environment for executing Java bytecode.
Platform Independence: JVM allows Java programs to run on any operating system without modification.
Bytecode Execution: It interprets or compiles Java bytecode into machine code for execution.
Memory Management: JVM handles memory allocation and garbage collection automatically.
Security: It provides a secure ex...
OOP is a programming paradigm based on objects, encapsulating data and behavior, promoting code reusability and modularity.
Encapsulation: Bundling data and methods that operate on the data within one unit (e.g., a class).
Inheritance: Mechanism to create a new class based on an existing class, inheriting its properties (e.g., a 'Dog' class inheriting from an 'Animal' class).
Polymorphism: Ability to present the same inte...
Variables can be categorized based on their scope, lifetime, and data type, impacting how they are used in programming.
1. Local Variables: Defined within a function or block, e.g., 'int x = 10;' inside a function.
2. Global Variables: Accessible throughout the program, e.g., 'int count;' defined outside any function.
3. Static Variables: Retain their value between function calls, e.g., 'static int counter = 0;' in a func...
An interface defines a contract for classes, specifying methods and properties without implementing them.
An interface can contain method signatures and properties but no implementation.
Classes that implement an interface must provide concrete implementations for all its members.
Interfaces support multiple inheritance, allowing a class to implement multiple interfaces.
Example: In Java, 'Runnable' is an interface that re...
I applied via Recruitment Consulltant and was interviewed in May 2024. There were 3 interview rounds.
It is easy to solve the Aptitude question and some identifying outputs of program.
A class is a blueprint for creating objects in object-oriented programming.
A class defines the properties and behaviors of objects.
An object is an instance of a class.
Example: Class 'Car' can have properties like 'color' and 'model', and behaviors like 'drive' and 'stop'.
Swap two numbers without using temp variable and reverse a string without using built-in functions.
To swap two numbers without using temp variable, use bitwise XOR operation.
To reverse a string without using built-in functions, use two pointers approach.
Example for swapping numbers: a = a ^ b; b = a ^ b; a = a ^ b;
Example for reversing a string: use two pointers to swap characters from start and end of the string.
Now, I am preparing for the third round.
So, I don't know the Coding Question.
posted on 27 Aug 2024
I applied via Job Portal
I applied via Walk-in and was interviewed in Jun 2024. There was 1 interview round.
Function to find the first non-repeating character in a string
Create a hashmap to store character frequencies
Iterate through the string to populate the hashmap
Iterate through the string again to find the first non-repeating character
A stack is a data structure that follows the Last In First Out (LIFO) principle, while a queue follows the First In First Out (FIFO) principle.
Stack: Last In First Out (LIFO), used for function calls, undo operations.
Queue: First In First Out (FIFO), used for printing tasks, message queues.
I applied via LinkedIn and was interviewed in Jun 2024. There was 1 interview round.
I use print statements, logging, and debugging tools to identify and fix issues in my code.
I start by reviewing the code and understanding the logic behind it.
I use print statements to check the values of variables at different points in the code.
I utilize logging to track the flow of the program and identify any errors.
I use debugging tools like breakpoints and step-through debugging to pinpoint the exact location of ...
Functional programming focuses on functions and immutability, while object-oriented programming focuses on objects and encapsulation.
Functional programming uses pure functions that do not have side effects.
Object-oriented programming uses objects that encapsulate data and behavior.
In functional programming, data is immutable and functions are first-class citizens.
In object-oriented programming, objects can have state a...
I applied via LinkedIn and was interviewed before Dec 2023. There were 2 interview rounds.
They just gave me an assessment with a few questions to test my subject knowledge
I appeared for an interview in Nov 2024.
The aptitude test evaluates problem-solving, coding skills, and logical reasoning, offering a fair challenge to showcase technical expertise.
I address conflicts in team projects by promoting open communication, active listening, and seeking compromise.
Encourage open communication among team members to address conflicts early on
Practice active listening to understand all perspectives and concerns
Seek compromise and find common ground to resolve conflicts effectively
posted on 24 Sep 2024
I applied via Campus Placement
Easy aptitude, 30 min with 20 question
based on 1 interview experience
Difficulty level
Duration
based on 9 reviews
Rating in categories
Senior Software Engineer
53
salaries
| ₹4 L/yr - ₹13 L/yr |
Software Engineer
51
salaries
| ₹2.7 L/yr - ₹7 L/yr |
Technical Lead
32
salaries
| ₹9 L/yr - ₹17.5 L/yr |
Project Lead
14
salaries
| ₹13 L/yr - ₹24 L/yr |
Software Developer
11
salaries
| ₹3 L/yr - ₹6.5 L/yr |
Accel Frontline
Apmosys Technologies
Pitney Bowes
DynPro