Filter interviews by
10 Java program given
Microservices with Kubernate deployment involves breaking down an application into smaller, independent services and deploying them using Kubernetes.
Microservices architecture involves breaking down a monolithic application into smaller, independent services that can be developed, deployed, and scaled independently.
Kubernetes is a container orchestration platform that automates the deployment, scaling, and management o...
Top trending discussions
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 when the client knows the URI of the resource it wants to update.
POST is used when the client does not know the URI of the
Idempotent methods in REST API calls are operations that can be repeated multiple times without changing the result beyond the initial application.
GET method is idempotent as it retrieves data and does not change the state of the server
PUT and DELETE methods are also idempotent as they perform the same operation regardless of how many times they are called
POST method is not idempotent as it creates a new resource each
I applied via Naukri.com and was interviewed in Feb 2022. There was 1 interview round.
Java 8 introduced lambda expressions, streams, default methods, and more.
Lambda expressions for functional programming
Streams for efficient processing of large data sets
Default methods to add new functionality to existing interfaces
Date and Time API for improved handling of date and time
Optional class to avoid null pointer exceptions
Nashorn JavaScript engine for improved performance
Parallel array sorting for faster sor
Stream is sequential while parallel stream is concurrent
Stream is a sequence of elements that can be processed sequentially
Parallel stream is a sequence of elements that can be processed concurrently
Parallel stream can improve performance for large datasets
Parallel stream uses multiple threads to process elements in parallel
Stream is suitable for small datasets or when order of processing is important
I applied via Walk-in and was interviewed in Nov 2024. There were 3 interview rounds.
It's walkin, so they conducted 1 technical mcqs round.
HashMap in Java is a data structure that stores key-value pairs and uses hashing to efficiently retrieve values based on keys.
HashMap uses an array of buckets to store key-value pairs.
Keys are hashed to determine the index in the array where the key-value pair will be stored.
In case of hash collisions, a linked list or a balanced tree is used to store multiple key-value pairs in the same bucket.
HashMap allows null keys...
Function to find and return all non-repeating characters in an array of strings.
Iterate through the array and count the occurrences of each character using a HashMap.
Then iterate through the array again and check if the count of each character is 1, if so add it to the result list.
Return the list of non-repeating characters.
To find the 3rd highest salary in a database, we can use a SQL query with the 'LIMIT' and 'OFFSET' keywords.
Use a SQL query with 'ORDER BY salary DESC' to sort the salaries in descending order.
Use 'LIMIT 1 OFFSET 2' to skip the first two highest salaries and retrieve the third highest salary.
Example: SELECT salary FROM employees ORDER BY salary DESC LIMIT 1 OFFSET 2;
A qualifier in Java is used to specify additional information about a primary, which is the main data type or variable.
A primary in Java is the main data type or variable, while a qualifier provides additional information about the primary.
Qualifiers can be used to modify the behavior or characteristics of a primary.
For example, in Java, 'final' is a qualifier that can be used to make a variable constant.
The main difference is that @RestController is a specialized version of @Controller that is used for RESTful web services.
Both @Controller and @RestController are used in Spring MVC to handle HTTP requests, but @RestController is specifically used for RESTful web services.
@Controller is used to create web pages, while @RestController is used to return data in JSON or XML format.
@RestController is a convenience annotati...
OOP concepts include inheritance, encapsulation, polymorphism, and abstraction.
Inheritance: Allows a class to inherit properties and behavior from another class. Example: class Dog extends Animal.
Encapsulation: Bundling data and methods that operate on the data into a single unit. Example: private variables with public getter and setter methods.
Polymorphism: Ability for objects to be treated as instances of their paren...
Microservices communicate with each other through various communication protocols like HTTP, messaging queues, and gRPC.
Microservices can communicate over HTTP using RESTful APIs.
Messaging queues like RabbitMQ or Kafka can be used for asynchronous communication between microservices.
gRPC is a high-performance, open-source RPC framework that can be used for communication between microservices.
Service discovery mechanism...
Microservice endpoints can be accessed using HTTP requests with the appropriate URL
Use HTTP methods like GET, POST, PUT, DELETE to interact with the microservice
Construct the URL with the base URL of the microservice and the specific endpoint path
Include any necessary headers or parameters in the request for authentication or data filtering
Microservices allow for modular, scalable, and flexible software development by breaking down applications into smaller, independent services.
Microservices enable easier maintenance and updates as each service can be developed, deployed, and scaled independently.
They improve fault isolation, as failures in one service do not necessarily affect the entire application.
Microservices promote agility and faster time-to-mark...
I applied via LinkedIn and was interviewed in Oct 2024. There was 1 interview round.
API design implementation involves creating a well-structured and user-friendly interface for interacting with software applications.
Understand the requirements and use cases for the API
Design clear and consistent endpoints with proper documentation
Implement secure authentication and authorization mechanisms
Follow RESTful principles for creating APIs
Consider scalability and performance optimizations
posted on 28 Apr 2024
I applied via Naukri.com and was interviewed in Mar 2024. There were 3 interview rounds.
posted on 30 Nov 2023
I applied via Naukri.com and was interviewed in Oct 2023. There were 2 interview rounds.
OOPs concepts are fundamental principles of object-oriented programming that help in designing and implementing software solutions.
Encapsulation: Bundling data and methods together in a class.
Inheritance: Creating new classes by inheriting properties and behaviors from existing classes.
Polymorphism: Ability of an object to take on many forms.
Abstraction: Hiding complex implementation details and providing a simplified ...
This program counts the occurrence of each letter in a given string.
Use a HashMap to store the count of each letter.
Iterate through the characters of the string and update the count in the HashMap.
Finally, print the count of each letter.
SQL query to find third highest salary from employee table.
Use the ORDER BY clause to sort the salaries in descending order
Use the LIMIT clause to limit the result to the third row
Use a subquery to exclude the highest and second highest salaries
Array is a fixed-size data structure while ArrayList is a dynamic-size data structure in Java.
Array has a fixed length, while ArrayList can grow dynamically.
Array can store both primitive types and objects, while ArrayList can only store objects.
Array uses square brackets [] for declaration, while ArrayList uses angle brackets <>.
Array provides direct access to elements using index, while ArrayList provides methods for...
ArrayList is a dynamic array that can grow or shrink in size. It stores objects and provides methods for adding, removing, and accessing elements.
ArrayList is part of the Java Collections Framework.
It is implemented as a resizable array.
Elements can be added using the add() method.
Elements can be accessed using the get() method.
Elements can be removed using the remove() method.
The size() method returns the number of el...
The default size of an ArrayList is 10.
The default initial capacity of an ArrayList is 10.
If the number of elements exceeds the initial capacity, the ArrayList automatically increases its size.
The capacity of an ArrayList can be increased manually using the ensureCapacity() method.
based on 1 interview
Interview experience
Desktop Support Engineer
214
salaries
| ₹1.4 L/yr - ₹4.1 L/yr |
Software Developer
186
salaries
| ₹2 L/yr - ₹10 L/yr |
Software Engineer
176
salaries
| ₹3 L/yr - ₹10 L/yr |
Network Engineer
167
salaries
| ₹1 L/yr - ₹6 L/yr |
Senior Software Engineer
137
salaries
| ₹5.1 L/yr - ₹16 L/yr |
Team Lease
Quess
Tech Mahindra
HCLTech