Filter interviews by
Top trending discussions
Oops concepts in Java are fundamental principles of object-oriented programming such as inheritance, polymorphism, encapsulation, and abstraction.
Inheritance: Allows a class to inherit properties and behavior from another class.
Polymorphism: Ability of an object to take on many forms.
Encapsulation: Bundling data and methods that operate on the data into a single unit.
Abstraction: Hiding the implementation details and s
Global exception handling is a mechanism to handle exceptions that occur throughout an application.
Global exception handling allows for centralized handling of exceptions in an application.
It helps in maintaining a consistent error handling strategy across the application.
By using global exception handling, developers can catch and handle exceptions at a higher level in the application.
Examples include using a global e...
posted on 9 May 2024
I applied via Naukri.com and was interviewed in Apr 2024. There was 1 interview round.
Program to sum two arrays in place without using extra space
Iterate through the arrays from right to left, adding the elements and storing the sum in the first array
Handle carry while adding the elements
Ensure to handle cases where arrays have different lengths
I applied via Naukri.com and was interviewed before Apr 2023. There was 1 interview round.
Group by a value using Java stream Api
Use the Collectors.groupingBy() method to group elements by a specific value
Provide a classifier function to specify the grouping criteria
Example: Map
Comparable and Comparator are interfaces in Java used for comparing objects.
Comparable is used for natural ordering of objects, implemented in the class of the object being compared.
Comparator is used for custom ordering of objects, implemented in a separate class.
Example: Comparable interface is used in String class for natural ordering, while Comparator interface can be used to sort a list of custom objects based on
I applied via Walk-in and was interviewed in Nov 2024. There was 1 interview round.
Use Streams to remove duplicates and retain only even numbers from an array.
Convert the array to a stream using Arrays.stream()
Use distinct() to remove duplicates
Filter out odd numbers using filter()
Collect the result using collect(Collectors.toList())
Static methods can be accessed without creating an instance of the class, while final keyword makes the method unchangeable.
Static methods belong to the class itself, not to any specific instance
Final keyword ensures that the method cannot be overridden in subclasses
Static methods are commonly used for utility methods that do not require access to instance variables
Example: Math class in Java has static methods like Ma
The @RestController annotation is used to define RESTful web services while @Controller annotation is used to define MVC controller.
RestController is a specialized version of Controller used for RESTful web services
RestController eliminates the need for @ResponseBody annotation
Controller is used for traditional MVC controller functionality
RestController returns data directly without needing to go through a view resolve...
Microservices are a software development technique where applications are composed of small, independent services that communicate with each other.
Microservices allow for easier scalability and maintenance of complex applications.
Each service in a microservices architecture can be developed, deployed, and scaled independently.
Microservices promote flexibility and agility in software development.
Examples of companies us...
Developed a web application for tracking employee attendance and performance
Implemented user authentication and authorization using Spring Security
Utilized Hibernate for database interaction and data persistence
Designed and developed RESTful APIs for frontend integration
Used AngularJS for frontend development to create interactive user interfaces
I applied via Recruitment Consulltant and was interviewed in Dec 2024. There was 1 interview round.
posted on 9 Oct 2024
I applied via Naukri.com and was interviewed in Sep 2024. There was 1 interview round.
Primitive data types are basic data types provided by the programming language, while non-primitive data types are created by the programmer.
Primitive data types include int, float, double, char, boolean, etc.
Non-primitive data types include arrays, classes, interfaces, etc.
Primitive data types store actual values, while non-primitive data types store references to objects.
Access modifiers control the visibility of classes, methods, and variables. Non-access modifiers provide additional functionality.
Access modifiers: public, private, protected, default
Non-access modifiers: static, final, abstract, synchronized
Example: public class MyClass { private int myVar; }
Java 8 features include lambda expressions, functional interfaces, streams, and more.
Lambda expressions allow concise syntax for defining anonymous functions.
Functional interfaces can have only one abstract method and are used for lambda expressions.
Streams provide a way to process collections of objects in a functional style.
Optional class helps to avoid NullPointerException by wrapping a value that may be null.
CICD tools automate the process of building, testing, and deploying code changes.
Popular CICD tools include Jenkins, GitLab CI/CD, CircleCI, and Travis CI
These tools help in automating the software development lifecycle
They enable continuous integration, continuous delivery, and continuous deployment
CICD tools help in improving code quality, reducing manual errors, and increasing development speed
Containerization is a lightweight, portable, and self-sufficient way to package and run applications.
Containerization involves encapsulating an application and its dependencies into a container image.
Containers are isolated from each other and share the host OS kernel.
Popular containerization platforms include Docker and Kubernetes.
Containerization allows for easy deployment and scaling of applications.
Indexing in SQL is a technique used to improve the performance of queries by creating a data structure that allows for faster retrieval of data.
Indexes are created on columns in a database table to speed up the retrieval of rows that match a certain condition in a query.
They work similar to the index in a book, allowing the database to quickly locate the rows that satisfy the query.
Indexes can be created using a single...
I applied via Approached by Company and was interviewed in May 2024. There were 4 interview rounds.
Microservices are a software development technique where an application is divided into smaller, independent services that communicate with each other through APIs.
Microservices are small, independent services that focus on specific business functions.
Each microservice can be developed, deployed, and scaled independently.
Microservices communicate with each other through APIs, typically using lightweight protocols like ...
Microservices architecture is a design approach where a single application is composed of small, independent services that communicate with each other.
Each microservice is responsible for a specific business function or capability
Microservices communicate with each other through APIs
Each microservice can be developed, deployed, and scaled independently
Microservices architecture promotes flexibility, scalability, and re
Microservices are connected in REST APIs using communication protocols like HTTP, messaging queues, and service discovery.
Microservices communicate with each other using HTTP requests and responses.
Messaging queues like RabbitMQ or Kafka can be used for asynchronous communication between microservices.
Service discovery tools like Eureka or Consul help in locating and connecting to different microservices.
API Gateway ca...
Creating immutable class of orders, sorting orders, finding average of lists of integers.
Create an immutable class Orders with private final fields and no setter methods.
Override equals() and hashCode() methods to ensure uniqueness of objects.
Use Collections.unmodifiableSet() to create a set of orders and Collections.sort() to sort them.
Iterate through the List of List of String of integers, convert to integers, and ca
Spring Cloud is a set of tools and frameworks for building cloud-native applications in Java.
Spring Cloud provides tools for service discovery, load balancing, configuration management, and more in microservices architecture.
It includes projects like Eureka for service discovery, Ribbon for client-side load balancing, and Config Server for externalized configuration.
Spring Cloud integrates with Spring Boot to simplify ...
Deployment build config includes settings for deploying the application.
Use tools like Maven or Gradle to manage dependencies and build the project
Specify deployment environment configurations in a separate file (e.g. application.properties)
Define build scripts for tasks like compiling, packaging, and deploying the application
Leverage CI/CD pipelines for automated builds and deployments
Given a project, you need to create logic for a service using helpers and finally give a aggregate of the final converted price .
Given few java 8 programming functions, you need to convert them to respective java 11 functions
posted on 30 Oct 2024
I applied via Naukri.com and was interviewed in Sep 2024. There was 1 interview round.
Abstract class can have both abstract and non-abstract methods, while interface can only have abstract methods.
Abstract class can have constructor, fields, and methods, while interface cannot have any of these.
A class can extend only one abstract class, but can implement multiple interfaces.
Abstract classes are used to define a common behavior among subclasses, while interfaces are used to define a contract for classes...
Handler methods in Java are methods that are responsible for handling incoming requests and generating responses.
Handler methods are typically defined in classes annotated with @Controller or @RestController.
These methods are mapped to specific URLs using @RequestMapping or other mapping annotations.
Handler methods can have parameters such as HttpServletRequest, HttpServletResponse, or model attributes.
The return value...
Information Technology Recruiter
50
salaries
| ₹2.4 L/yr - ₹4.2 L/yr |
Senior Software Engineer
47
salaries
| ₹9.4 L/yr - ₹30 L/yr |
Senior IT Recruiter
30
salaries
| ₹3 L/yr - ₹6.8 L/yr |
Software Developer
27
salaries
| ₹4.5 L/yr - ₹15.4 L/yr |
Software Engineer
25
salaries
| ₹4.2 L/yr - ₹12 L/yr |
Infosys
Wipro
TCS
HCLTech