Filter interviews by
Basic core Java, SQL query
Inheritance is a mechanism in Java where one class inherits the properties and behaviors of another class.
Inheritance allows code reusability and promotes the concept of hierarchical relationships between classes.
The class that is being inherited from is called the superclass or parent class, while the class that inherits is called the subclass or child class.
The subclass can access the public and protected members of ...
Top trending discussions
I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.
I have 2 years of experience working with Docker in various projects.
2 years of experience working with Docker in various projects
Proficient in creating Docker containers, managing images, and orchestrating containers using Docker Compose
Familiar with Docker Swarm and Kubernetes for container orchestration
Experience in troubleshooting Docker-related issues and optimizing container performance
Yes, I have experience in Kubernetes.
I have worked on deploying and managing applications on Kubernetes clusters.
I am familiar with creating and managing Kubernetes resources such as pods, deployments, services, and ingresses.
I have experience in using tools like kubectl and Helm for interacting with Kubernetes clusters.
I have implemented CI/CD pipelines using Kubernetes for automated deployment and scaling of applicat
OOP stands for Object-Oriented Programming, a programming paradigm based on the concept of objects.
OOP focuses on creating objects that contain data and methods to manipulate that data.
Encapsulation, inheritance, and polymorphism are key principles of OOP.
Examples of OOP languages include Java, C++, and Python.
Polymorphism in Java refers to the ability of a method to do different things based on the object it is acting upon.
Types of polymorphism in Java include method overloading and method overriding.
Method overloading is when multiple methods have the same name but different parameters.
Method overriding is when a subclass provides a specific implementation of a method that is already defined in its superclass.
Threads in Java allow multiple tasks to run concurrently within a single program.
Threads are lightweight sub-processes that share the same memory space.
They are used to improve performance by allowing tasks to run simultaneously.
Examples include creating a new thread using the Thread class or implementing the Runnable interface.
Spring profile is a way to segregate parts of your application configuration and make it only available in certain environments.
Spring profiles allow you to define different configurations for different environments such as development, testing, and production.
You can use @Profile annotation to specify which beans should be loaded based on the active profile.
Profiles can be activated in various ways such as through app...
Annotations used in Spring Security to apply authorization rules before and after a method is called.
Used in Spring Security to define authorization rules
@PreAuthorize is used to apply authorization rules before a method is called
@PostAuthorize is used to apply authorization rules after a method is called
Both annotations support SpEL expressions for defining rules
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
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...
I was interviewed in Nov 2024.
A program to check if a given number is prime or not.
Create a function to check if a number is prime by iterating from 2 to the square root of the number.
If the number is divisible by any number other than 1 and itself, it is not prime.
Handle edge cases like 0, 1, and negative numbers separately.
To find the 3rd highest salary employee, we can use a SQL query with the 'LIMIT' and 'OFFSET' keywords.
Use a SQL query to select distinct salaries in descending order
Use 'LIMIT 1 OFFSET 2' to get the 3rd highest salary
Join this result with the employee table to get the employee details
I applied via Campus Placement and was interviewed in Apr 2024. There were 2 interview rounds.
Aptitude questions and some questions from PostgreSQL.
HashMap, LinkedList, HashSet, and Heap are data structures commonly used in Java for storing and organizing data.
HashMap: key-value pairs, uses hashing to store and retrieve elements efficiently (e.g. HashMap
LinkedList: linear data structure, elements are stored in nodes with pointers to the next node (e.g. LinkedList
HashSet: collection of unique elements, uses hashing to ensure uniqueness (e.g. Hash...
Comparable is an interface used for natural ordering, while Comparator is used for custom ordering in Java.
Comparable interface is used to define the natural ordering of objects. It is implemented by the class whose objects are to be sorted.
Comparator interface is used to define custom ordering of objects. It is implemented by a separate class that compares objects based on specific criteria.
Example: Sorting a list of ...
List allows duplicate elements and maintains insertion order, while Set does not allow duplicates and does not maintain order.
List can contain duplicate elements, Set cannot
List maintains insertion order, Set does not guarantee order
List is implemented by classes like ArrayList, LinkedList, Set is implemented by classes like HashSet, TreeSet
Example: List
Questions on permuation and combination
I applied via Job Portal and was interviewed in Mar 2024. There was 1 interview round.
Use Spring Data JPA to connect Spring Boot project with database.
Add database configuration in application.properties or application.yml file
Create entity classes annotated with @Entity and @Table
Create repository interfaces extending JpaRepository
Use @Autowired annotation to inject repository in services or controllers
Ages, trains, profit losss, hcf lcm, clock, simple interest 30 min
Array string sorting algorithm
Sales Executive
5
salaries
| ₹0.7 L/yr - ₹2.5 L/yr |
Logistics Executive
4
salaries
| ₹1 L/yr - ₹1.1 L/yr |
Logistics Manager
4
salaries
| ₹2 L/yr - ₹2.3 L/yr |
Senior Accounts Executive
4
salaries
| ₹1.2 L/yr - ₹3 L/yr |
Executive Accountant
4
salaries
| ₹1.2 L/yr - ₹2.3 L/yr |
Cognizant
Teleperformance
Reliance Retail
iEnergizer