-
What is the Collections API
The Collections API is a set of classes and interfaces that support operations oncollections of objects.
-
-
-
-
What is synchronization and why is it important
With respect to multithreading, synchronization is the capability to control the access ofmultiple threads to shared resources. Without synchronization, it is possible for onethread to modify a shared object while another thread is in the process of using orupdating that object's value. This often leads to significant errors.
-
-
Is the following Java program run? private static void main(String args[]) { class valan { //body of the class } }
No. Compilation error will occur.The error message is : main method should be public
-
-
What is the difference between a Window and a Frame
The Frame class extends Window to define a main application window that can have amenu bar.
-
-
-
What value does read() return when it has reached the end of a file
The read() method returns -1 when it has reached the end of a file.
-
-
Java Reflection
What is reflection and its use in java?
-
How does multithreading take place on a computer with a single CPU
The operating system's task scheduler allocates execution time to multiple tasks. Byquickly switching between executing tasks, it creates the impression that tasks executesequentially.
-
-
-
-
Immutable Strings Object
How String object is immutable and why?
-
Java Interview Questions
Ans