Filter interviews by
Object-oriented programming paradigm in which data and behavior are encapsulated within objects
Oops stands for Object-oriented programming
It focuses on creating objects that contain data and methods to manipulate that data
Encapsulation, inheritance, polymorphism, and abstraction are key principles of OOP
Example: In Java, classes and objects are used to implement OOP concepts
Encapsulation is the concept of bundling data and methods that operate on the data within a single unit, known as a class.
Encapsulation helps in hiding the internal state of an object and restricting access to it.
It allows for better control over the data by preventing direct access and modification from outside the class.
Getters and setters are commonly used to provide controlled access to the encapsulated data.
Exampl...
My ideal development environment is one that promotes collaboration, innovation, and continuous learning.
Open communication and collaboration among team members
Access to the latest tools and technologies
Support for continuous learning and professional development
Flexible work hours and remote work options
A culture that values creativity and innovation
My favorite features of Java include its platform independence, strong type system, and rich ecosystem of libraries.
Platform independence allows Java programs to run on any device with a Java Virtual Machine (JVM)
Strong type system helps catch errors at compile time, leading to more robust code
Rich ecosystem of libraries like Spring, Hibernate, and Apache Commons provide powerful tools for developers
I applied via Indeed and was interviewed in May 2023. There were 3 interview rounds.
I applied via Referral and was interviewed before Sep 2020. There was 1 interview round.
Top trending discussions
I applied via Company Website and was interviewed in Jul 2020. There were 5 interview rounds.
JDK is a development kit, JRE is a runtime environment, and JVM is a virtual machine for executing Java code.
JDK includes JRE and development tools like compiler and debugger
JRE includes JVM and necessary libraries to run Java applications
JVM is responsible for interpreting Java bytecode and executing it
JDK is used for developing Java applications, JRE is used for running them
Example: JDK 8 includes JRE 8 and tools lik...
Yes, Java is platform-independent because of its 'write once, run anywhere' principle.
Java programs are compiled into bytecode, which can be executed on any platform with a Java Virtual Machine (JVM).
The JVM acts as an interpreter, translating the bytecode into machine code specific to the underlying platform.
This allows Java programs to run on different operating systems and hardware architectures without modification...
Constructors are special methods used to initialize objects in Java.
Constructors have the same name as the class they belong to.
They are called automatically when an object is created.
They can be overloaded to accept different parameters.
Example: public class Car { public Car(String make, String model) { ... } }
Example: Car myCar = new Car("Toyota", "Camry");
The final keyword in Java is used to declare a constant variable or to prevent method overriding and class inheritance.
Final variables cannot be reassigned once initialized
Final methods cannot be overridden by subclasses
Final classes cannot be inherited by other classes
Example: final int MAX_VALUE = 100;
Example: final void printMessage() { System.out.println("Hello World!"); }
Example: final class MyClass { ... }
Java String Pool is a cache of String objects stored in heap memory.
String literals are automatically added to the pool.
String objects created using the 'new' keyword are not added to the pool.
String.intern() method can be used to add a String object to the pool.
String pool helps in saving memory by reusing common String literals.
Java Strings are immutable to ensure data integrity and security.
Immutable strings prevent accidental modification of data.
String pooling optimizes memory usage by reusing existing strings.
Immutable strings are thread-safe, simplifying concurrent programming.
String immutability allows for efficient caching and hashing.
Immutable strings enable safe sharing of string references.
I applied via LinkedIn and was interviewed before Sep 2020. There was 1 interview round.
I applied via Naukri.com and was interviewed in Dec 2020. There was 1 interview round.
Keywords for thread safe program in Java
Synchronization using synchronized keyword
Using volatile keyword for shared variables
Using atomic classes for thread safe operations
Using thread safe collections like ConcurrentHashMap
Using locks and semaphores for synchronization
Avoiding shared mutable state
Using immutable objects
Using thread local variables
Class modification exception occurs when a class is modified after it has been loaded by the JVM.
This exception is thrown when a class is modified and then reloaded by the JVM.
It can occur when a class is modified during runtime or when a new version of a class is loaded.
This exception can be avoided by using a class loader that isolates the classes from each other.
An example of this exception is when a method is added...
I applied via Campus Placement and was interviewed in May 2021. There were 3 interview rounds.
Interview questions for Java Developer
JVM is a virtual machine that executes Java bytecode
OOPS is a programming paradigm based on objects and classes
SQL queries are used to retrieve data from a database
REST API is a web service that uses HTTP requests to access and manipulate data
Sorting an ArrayList can be done using Collections.sort() method
Known sorting algorithms include Bubble Sort, Quick Sort, and Merge Sort
Java is a high-level, object-oriented programming language used to develop applications for various platforms.
Java is platform-independent and can run on any device with a Java Virtual Machine (JVM)
It is known for its security features and is commonly used for developing web applications, mobile apps, and enterprise software
Java code is compiled into bytecode, which can be executed on any platform that has a JVM instal...
Java is a versatile, platform-independent language with a vast community and extensive libraries.
Java is object-oriented and easy to learn.
It has a vast community and extensive libraries.
It is platform-independent and can run on any device.
Java is secure and reliable.
It is used in various domains like web development, mobile app development, and enterprise applications.
Examples: Android apps, Spring framework, Hadoop,
I applied via Naukri.com and was interviewed in Jul 2021. There were 4 interview rounds.
based on 2 interviews
Interview experience
Delivery and Operations Manager
4
salaries
| ₹6 L/yr - ₹9 L/yr |
TCS
Accenture
Wipro
Cognizant