Filter interviews by
I applied via Naukri.com and was interviewed in Aug 2022. There were 3 interview rounds.
There are multiple ways to create objects in Java.
Using the 'new' keyword
Using object cloning
Using object deserialization
Using reflection
Using factory methods
Using dependency injection frameworks
The final keyword in Java is used to restrict the user from modifying the value of a variable, the definition of a method, or the inheritance of a class.
When applied to a variable, the final keyword makes it a constant that cannot be changed.
When applied to a method, the final keyword prevents it from being overridden by subclasses.
When applied to a class, the final keyword prevents it from being extended by other clas...
I applied via Naukri.com and was interviewed before Feb 2023. There was 1 interview round.
Stream API in Java provides a way to process collections of objects in a functional style.
Stream API allows for easy manipulation of collections using functional programming concepts like map, filter, and reduce.
Example: List
Streams can be parallelized to improve performance on multi-core...
Top trending discussions
I applied via Naukri.com and was interviewed before May 2021. There was 1 interview round.
I applied via Company Website
I applied via Campus Placement and was interviewed before Jul 2021. There were 2 interview rounds.
I applied via Campus Placement and was interviewed before Oct 2020. There was 1 interview round.
Encapsulation is the process of hiding implementation details and providing access to only necessary information.
Encapsulation helps in achieving data abstraction and information hiding.
It allows for better control over data and prevents unauthorized access.
In Java, encapsulation is achieved through the use of access modifiers such as private, public, and protected.
For example, a class may have private variables that c...
A string is a sequence of characters used to represent text in programming.
Strings are often used for storing and manipulating text data.
In Java, strings are represented by the String class.
Strings can be concatenated using the + operator.
Strings are immutable, meaning they cannot be changed once created.
Examples of string literals include "hello world" and "42".
I was interviewed in Jul 2017.
Autoboxing is the automatic conversion of primitive data types to their corresponding object wrapper classes.
Autoboxing is useful when working with collections that require objects instead of primitives.
Example: int i = 5; Integer j = i; //autoboxing
Unboxing is the opposite of autoboxing, where an object of a wrapper class is converted back to its corresponding primitive type.
Example: Integer j = 5; int i = j; //unboxi
Typecasting up and down refers to converting a variable of one data type to another data type of higher or lower precision.
Typecasting up involves converting a variable of lower precision to a variable of higher precision, such as converting an int to a double.
Typecasting down involves converting a variable of higher precision to a variable of lower precision, such as converting a double to an int.
Typecasting can resul...
To iterate a map in Java, use a for-each loop or an iterator.
Use the entrySet() method to get a set of key-value pairs
For-each loop: for(Map.Entry
Iterator: Iterator
Use hasNext() and next() methods to iterate through the map
Types of synchronization in Java
Synchronized methods
Synchronized statements
ReentrantLock
Semaphore
CountDownLatch
Access modifiers in method overriding
Access modifiers in the overriding method cannot be more restrictive than the overridden method
The access modifier can be less restrictive or the same as the overridden method
Private methods cannot be overridden
Examples: public method can be overridden by public or protected method, but not by private method
I was interviewed in Jun 2017.
I applied via Naukri.com and was interviewed in Aug 2018. There were 5 interview rounds.
The question is asking about the candidate's knowledge in Core Java, Spring, Hibernate, Spring Boot, SQL, and AngularJS.
Core Java is the foundation of Java programming language.
Spring is a popular framework for building Java applications.
Hibernate is an ORM tool used for mapping Java objects to database tables.
Spring Boot is a framework for building microservices.
SQL is a language used for managing relational databases...
To connect 2 DBs from a Spring Boot application, configure multiple data sources and use JdbcTemplate or EntityManager for each DB.
Configure multiple data sources in the application.properties file
Create separate configuration classes for each data source
Use JdbcTemplate or EntityManager to interact with each DB
Specify the appropriate data source in the repository or service classes
Abstract method implementation is mandatory while default method is optional.
Abstract method has no implementation in the abstract class and must be implemented by the subclass.
Default method has a default implementation in the interface and can be overridden by the implementing class.
Abstract method is used to enforce a contract while default method is used to provide a default behavior.
Example: abstract method - publ...
based on 2 interviews
Interview experience
based on 1 review
Rating in categories
Software Engineer
316
salaries
| ₹0 L/yr - ₹0 L/yr |
Information Technology Recruiter
296
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Software Engineer
229
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Developer
221
salaries
| ₹0 L/yr - ₹0 L/yr |
Softwaretest Engineer
131
salaries
| ₹0 L/yr - ₹0 L/yr |
Infosys
TCS
Wipro
HCLTech