Filter interviews by
I applied via By and was interviewed in Jul 2022. There were 2 interview rounds.
Aggregate functions in SQL are used to perform calculations on a set of values and return a single value.
Common aggregate functions include COUNT, SUM, AVG, MIN, and MAX.
COUNT returns the number of rows that match a specified condition.
SUM calculates the sum of a column's values.
AVG calculates the average of a column's values.
MIN returns the minimum value in a column.
MAX returns the maximum value in a column.
Aggregate ...
Spring Boot CRUD example is a basic implementation of Create, Read, Update and Delete operations using Spring Boot framework.
Create a Spring Boot project with required dependencies
Define entity classes and their relationships
Create repository interfaces extending JpaRepository
Implement service classes with business logic
Create RESTful API endpoints using @RestController
Use HTTP methods to perform CRUD operations
Test th
Top trending discussions
In Java, == compares memory addresses while .equals() compares the actual content of objects.
== compares memory addresses of objects, while .equals() compares the actual content.
== is used to compare primitive data types, while .equals() is used to compare objects.
Example: String str1 = new String("hello"); String str2 = new String("hello"); str1 == str2 will be false, but str1.equals(str2) will be true.
The question explains the difference between == and .equals() in Java for comparing object references and content.
Use == to compare object references (memory location)
Use .equals() to compare the actual content or values of the objects
Example: String str1 = new String("hello"); String str2 = new String("hello"); str1 == str2 will be false, but str1.equals(str2) will be true
posted on 24 Sep 2024
I applied via Walk-in and was interviewed in Aug 2024. There was 1 interview round.
I am a passionate Java Developer with 5 years of experience in developing web applications and implementing solutions using Java technologies.
5 years of experience in Java development
Strong knowledge of web application development
Experience in implementing solutions using Java technologies
Java feature includes platform independence, object-oriented programming, and automatic memory management.
Platform independence allows Java programs to run on any platform without recompilation.
Object-oriented programming supports concepts like inheritance, encapsulation, and polymorphism.
Automatic memory management through garbage collection helps in managing memory efficiently.
Encapsulation in Java is the concept of wrapping data (variables) and code (methods) together into a single unit, known as a class.
Encapsulation helps in data hiding, as the internal state of the object is hidden from the outside world.
It allows for better control over the data by providing getter and setter methods to access and modify the data.
Encapsulation also helps in maintaining the integrity of the data by preve...
I applied via Approached by Company and was interviewed in Mar 2023. There were 3 interview rounds.
Java is a high-level programming language known for its portability, security, and object-oriented features.
Java is platform-independent, meaning it can run on any device with a Java Virtual Machine (JVM).
It is object-oriented, allowing for modular and reusable code.
Java is known for its security features, such as sandboxing and encryption.
Popular frameworks and libraries like Spring and Hibernate are commonly used in
Immutable class in Java cannot be modified after creation, ensuring data integrity.
Make the class final so it cannot be extended
Make all fields private and final so they cannot be modified
Do not provide setter methods, only getter methods to access the fields
If the class contains mutable objects, make sure to return a deep copy of them in getter methods
The question is asking to create a class with certain restrictions like being final, having private and final fields, and no setter methods.
Declare the class as final to prevent it from being subclassed.
Make all fields private and final to ensure encapsulation and immutability.
Provide no setter methods to enforce read-only access to the fields.
The static keyword in Java is used to create class-level variables and methods that can be accessed without creating an instance of the class.
Static variables are shared among all instances of a class.
Static methods can be called without creating an instance of the class.
Static blocks are used to initialize static variables.
Static keyword can also be used to create static nested classes.
In Java, == compares memory addresses while .equals() compares the actual content of objects.
== compares memory addresses of objects, while .equals() compares the actual content of objects.
== is used to compare primitive data types, while .equals() is used to compare objects.
Example: String str1 = new String("hello"); String str2 = new String("hello"); str1 == str2 will be false, but str1.equals(str2) will be true.
In Java, == compares object references, while .equals() compares object values.
Use == to compare if two object references point to the same memory location.
Use .equals() to compare if two objects have the same values.
Example: String str1 = new String("hello"); String str2 = new String("hello"); str1 == str2 will be false, but str1.equals(str2) will be true.
No, a Java class cannot extend multiple classes.
Java does not support multiple inheritance for classes.
A class can only extend one other class, but can implement multiple interfaces.
Example: class MyClass extends ParentClass implements Interface1, Interface2
The size of an int in Java is 4 bytes.
An int in Java is a 32-bit signed integer.
It can hold values ranging from -2,147,483,648 to 2,147,483,647.
The size of an int is fixed at 4 bytes on all platforms.
Yes, the size of an int in Java is indeed 4 bytes (32 bits).
An int in Java can hold values ranging from -2,147,483,648 to 2,147,483,647.
The size of an int can be confirmed using the 'Integer.SIZE' constant in Java.
Using 'Integer.BYTES' will give the size of an int in bytes.
Interview experience
based on 3 reviews
Rating in categories
Java Developer
25
salaries
| ₹1.1 L/yr - ₹7.5 L/yr |
Software Developer
19
salaries
| ₹1.8 L/yr - ₹6.6 L/yr |
Technical Support Engineer
16
salaries
| ₹2 L/yr - ₹5 L/yr |
Junior Java Developer
11
salaries
| ₹1.6 L/yr - ₹3.6 L/yr |
Software Engineer
6
salaries
| ₹2.9 L/yr - ₹3.5 L/yr |
TCS
Infosys
Wipro
HCLTech