-
-
Arrays/Linked List
When and on what conditions will you decide whether to use linked lists or arrays, also Which process is fastest and which is slowest in arrays as well as linked list i.e, sorting, searching, add, delete etc.
-
Jumble Array Values
An array A is of size N. Write a java method that jumbles all values in the array. All possible permutations must be possible and chances for each possible permutation must be equal. For example, size of array A is 3. A[0]=x, A[1]=y, A[2] =z.Possible permutations are 3! After jumbling elements, there would be equal chances for each of xyz,yxz,... to be in the array elements.
-
-
-
Abstract vs Interface Class
Which is faster at class loading - interface or abstract class? Why?
-
-
-
Object Class Methods
Why wait() and notify() are used only for threads, why not to objects?
-
Serialization Process
Explain the use of serialization process in real time projects?
-
-
-
Exception on finalize ()?
If Exception occurs in finalize() what happened to garbage collector? It will run or not? Explain
-
-
-
-
Mutithreading
How synchronization can be done for multithreading environment without using the "synchronized" keyword?
-
-
-
Core Java Interview Questions
Ans