i
CognitiveClouds
Filter interviews by
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 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 Developer interview questions covering array list, linkedlist, hashmap, synchronization, abstract vs interface, singleton class, Spring framework, database configuration, and Java 8 features.
ArrayList and LinkedList differ in terms of implementation, performance, and usage
HashMap uses hashing to store and retrieve key-value pairs
Synchronized is used to ensure thread safety and prevent race conditions
Abstract class...
This interview question covers various topics including programming, design patterns, data structures, and exception handling in Java.
Write a program to generate the Fibonacci series
Write a program using boolean variables
Explain the ClassCastException and how to handle it
Discuss the Singleton design pattern and its implementation with different JDK versions
Explain abstract classes and interfaces in your current project
...
I applied via Naukri.com and was interviewed before Jul 2020. There were 3 interview rounds.
I have used the Singleton design pattern in my Java projects.
Singleton pattern ensures that only one instance of a class is created and provides a global point of access to it.
It is useful when we want to limit the number of instances of a class to one.
Example: Creating a Logger class as a Singleton to ensure only one instance is used throughout the application.
I applied via Campus Placement and was interviewed before Mar 2021. There were 3 interview rounds.
Well, apti was normal having topics like percentage, Ratio, number system, profit loss age, etc
Some of the top questions asked at the CognitiveClouds Node JS Developer interview -
based on 1 interview
Interview experience
Software Engineer
63
salaries
| ₹3 L/yr - ₹11 L/yr |
Associate Software Engineer
42
salaries
| ₹4 L/yr - ₹8 L/yr |
Software Developer
12
salaries
| ₹3.1 L/yr - ₹12 L/yr |
IOS Developer
9
salaries
| ₹2.4 L/yr - ₹11.6 L/yr |
Lead
9
salaries
| ₹23 L/yr - ₹24 L/yr |
Accenture
Wipro
Cognizant
Capgemini