i
ANR Software Private Limited
Filter interviews by
Clear (1)
2 Programming questions
String pool is a memory area in Java where strings are stored to optimize memory usage. OOPS stands for Object-Oriented Programming System. HashMap is a data structure in Java that stores key-value pairs.
String pool in Java is a special memory area where strings are stored to optimize memory usage.
OOPS stands for Object-Oriented Programming System, a programming paradigm based on the concept of objects.
HashMap is a dat...
Top trending discussions
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...
I was interviewed in Jun 2017.
I was interviewed in Feb 2017.
I applied via Naukri.com and was interviewed before May 2021. There was 1 interview round.
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".
based on 1 interview
Interview experience
Business Analyst
114
salaries
| ₹0 L/yr - ₹0 L/yr |
Java Developer
54
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Developer
51
salaries
| ₹0 L/yr - ₹0 L/yr |
Production Analyst
40
salaries
| ₹0 L/yr - ₹0 L/yr |
QA Engineer
32
salaries
| ₹0 L/yr - ₹0 L/yr |
TCS
Infosys
Wipro
HCLTech