CORE JAVA,Interview,Interview Questions

Why finalize() method should be avoided?

15 Oct , 2016  

We all know the basic statement that finalize() method is called by garbage collector thread before reclaiming the memory allocated to the obj...

CORE JAVA,Interview Questions

Difference between Error vs Exception in Java – Interview question

29 Sep , 2016  

1) As I said earlier, Main difference on Error vs Exception is that Error is not meant to catch as even if you catch it you cannot recover...

Collection Framework,CORE JAVA,Interview Questions

Array vs ArrayList in Java

29 Sep , 2016  

1) First and Major difference between Array and ArrayList in Java is that Array is a fixed length data structure while ArrayList is a vari...

CORE JAVA,Interview Questions,Threading

wait() vs notify() vs notifyAll in threading

29 Sep , 2016  

1) Though wait, notify and notifyAll are related to threads they are not defined in java.lang.Thread class, instead they are defined in the Obje...

CORE JAVA,Interview Questions

Stack vs Heap in Java

27 Sep , 2016  

Here are few differences between stack and heap memory in Java: 1) The main difference between heap and stack is that stack memory is used to st...

CORE JAVA,Interview Questions

Difference between BufferedReader and Scanner class

26 Sep , 2016  

1. Scanner is a much more powerful utility than BufferedReader. It can parse the user input and read int, short, byte, float, long and double ap...

CORE JAVA,Interview Questions,OOPs concepts in Java


25 Sep , 2016  

1) First difference between Abstraction and Encapsulation is that, Abstraction is implemented in Java using interface and abstract class while E...

Interview Questions,Uncategorized

DIFFERENCE BETWEEN a = a + b AND a += b ?

25 Sep , 2016  

The += operator implicitly cast the result of addition into the type of variable used to hold the result. When you add two integral variable e.g...

CORE JAVA,Interview Questions,OOPs concepts in Java

early and late binding

25 Sep , 2016  

1) The static binding occurs at compile time while dynamic binding happens at runtime. 2) Since static binding happens at an early stage of prog...

Collections Framework,CORE JAVA,Interview Questions

Fail Safe and Fail Fast Iterator in Java

25 Sep , 2016  

1) Fail-fast Iterator throws ConcurrentModfiicationException as soon as they detect any structural change in collection during iteration, basica...