i
Snapwork Technology
Filter interviews by
I applied via Referral and was interviewed in Feb 2023. There were 3 interview rounds.
I applied via Company Website and was interviewed before Mar 2023. There was 1 interview round.
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
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.
based on 2 interviews
Interview experience
Angular Frontend Developer
8
salaries
| ₹8 L/yr - ₹10 L/yr |
Software Developer
7
salaries
| ₹3.5 L/yr - ₹10 L/yr |
Java Developer
5
salaries
| ₹1.8 L/yr - ₹8 L/yr |
hybrid developer
5
salaries
| ₹3 L/yr - ₹12.6 L/yr |
Software Engineer
4
salaries
| ₹5.5 L/yr - ₹8.3 L/yr |
HCL Infosystems
Northcorp Software
Appsierra
Jetking Infotrain