Filter interviews by
I applied via Naukri.com
Static block is a block of code that is executed when a class is loaded into memory.
Static block is declared using the 'static' keyword.
It is executed only once when the class is loaded.
It is used to initialize static variables or perform any other static initialization.
It can throw exceptions which need to be handled.
Multiple static blocks can be defined in a class and they are executed in the order they are defined.
Method overloading is having multiple methods with the same name but different parameters, while method overriding is having a subclass method with the same name and parameters as a superclass method.
Method overloading is resolved at compile-time based on the number and type of arguments passed
Method overriding is resolved at runtime based on the actual object type
Method overloading is used to provide different ways of...
Yes, null value can be added in HashMap.
HashMap allows null as key and value.
If a null key is added, it will replace the existing null key.
If a null value is added, it will be stored as a value with a null key.
Testing is the process of evaluating a system or its component(s) with the intent to find whether it satisfies the specified requirements or not.
Testing is done to identify defects or errors in the system
It helps in improving the quality of the system
Testing can be done at different levels such as unit testing, integration testing, system testing, and acceptance testing
Automated testing is becoming more popular due to ...
Abstract class can have implementation while interface only has method signatures.
Abstract class can have constructors while interface cannot.
A class can implement multiple interfaces but can only extend one abstract class.
Abstract class can have non-abstract methods while interface only has abstract methods.
Abstract class is used for code reusability while interface is used for polymorphism.
Example of abstract class: ...
Oracle DB is a proprietary RDBMS while SQL DB is a generic term for any RDBMS that uses SQL as its language.
Oracle DB is developed and marketed by Oracle Corporation while SQL DB is a generic term for any RDBMS that uses SQL as its language.
Oracle DB is a proprietary RDBMS while SQL DB is a generic term for any RDBMS that uses SQL as its language.
Oracle DB has its own PL/SQL language while SQL DB uses SQL as its langua...
OOPs is a programming paradigm based on the concept of objects.
Encapsulation - bundling of data and methods that act on that data
Inheritance - ability of a class to inherit properties and methods from a parent class
Polymorphism - ability of objects to take on many forms
Abstraction - hiding of complex implementation details from the user
Abstract is a keyword in Java used to create abstract classes and methods.
Abstract classes cannot be instantiated
Abstract methods do not have a body and must be implemented by the subclass
Abstract classes can have both abstract and non-abstract methods
Abstract classes are used to provide a common interface for its subclasses
Example: abstract class Animal { abstract void makeSound(); }
JSP does not have any implicit methods, but it has implicit objects.
JSP has implicit objects like request, response, session, application, pageContext, out, config, and exception.
These objects are automatically available in JSP pages without any declaration or initialization.
They can be used to perform various operations like accessing request parameters, setting session attributes, etc.
Servlet is an interface in Java EE used to handle HTTP requests and responses.
Servlet interface is implemented by classes like HttpServlet
It has methods like init(), service(), and destroy()
Servlets are used to create dynamic web pages and web applications
I know several frameworks including Spring, Hibernate, and Struts.
Spring: widely used for building enterprise-level applications
Hibernate: object-relational mapping framework for database access
Struts: MVC framework for building web applications
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 Company Website and was interviewed in Nov 2024. There were 3 interview rounds.
A standard online test conducted through one of the testing platforms.
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 Naukri.com and was interviewed in Nov 2024. There were 2 interview rounds.
Developed a web-based inventory management system for a retail company.
Used Java, Spring Boot, and MySQL for backend development.
Implemented user authentication and authorization using Spring Security.
Designed a responsive front-end using HTML, CSS, and JavaScript.
Integrated barcode scanning functionality for efficient inventory tracking.
A class is a blueprint or template for creating objects, while an object is an instance of a class.
A class defines the properties and behaviors of objects, while an object is a specific instance of a class.
Classes can be used to create multiple objects with similar characteristics.
Objects have state (attributes) and behavior (methods) defined by the class.
Example: Class 'Car' defines properties like 'color' and 'model'...
posted on 15 Nov 2024
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...
Cognizant
NTT Data Information Processing Services
Sutherland Global Services
Hexaware Technologies