CORE JAVA,Interview,Interview Questions

Abstract class vs Interface in Java

16 Aug , 2016  

1) First and major difference between abstract class and interface is that, abstract class is a class while interface is a interface, means by e...

CORE JAVA,Interview Questions

Overloading and Overriding in Java

16 Aug , 2016  

1) First and major difference between Overloading and Overriding is that former occur during compile time while later occur during runtime. 2)...

Collection Framework,CORE JAVA,Interview,Interview Questions

How HashMap Works Internally

16 Aug , 2016  

HashMap in Java works on hashing principle. It is a data structure which allows us to store object and retrieve it in constant time O(1) provide...

CORE JAVA,Interview,Interview Questions,String

String vs StringBuffer

15 Aug , 2016  

No. String StringBuffer 1) String class is immutable. StringBuffer class is mutable. 2) String is slow and consumes more memory when you concat ...

CORE JAVA,Interview Questions,String

What does intern() method do in Java?

15 Aug , 2016  

 String object crated by new() operator is by default not added in String pool as opposed to String literal. intern() method allows to put ...

Interview,Interview Questions,String

Why String is Immutable in Java

15 Aug , 2016  

Requirement of String Pool String pool (String intern pool) is a special storage area in Java heap. When a string is created and if the string a...

Features of java

Features of java

10 Aug , 2016  

Features of java:- 1) Compiled and Interpreter:- has both Compiled and Interpreter Feature Program of java is First Compiled and Then it is must...

CORE JAVA

Modifiers

10 Aug , 2016  

Modifier Used on Meaning abstract class The class contains unimplemented methods and cannot be instantiated. interface All interfaces are abstr...

CORE JAVA,Interview Questions,OOPS Concept

Abstraction vs. Encapsulation in Java

10 Aug , 2016  

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

CORE JAVA,Interview Questions

What is an infinite Loop? How infinite loop is declared?

10 Aug , 2016  

An infinite loop runs without any condition and runs infinitely. An infinite loop can be broken by defining any breaking logic in the body of th...