Interview Questions

Why Java is Platform Independent Language?

In this article we will learn about why java is platform independent. Before getting into details of this first we should know what platform independence is. Platform Independence: It means if we have written a program it should run on any platform without any modifications. Platform means hardware + operating system. Why Java is Platform Independent …

Why Java is Platform Independent Language? Read More »

Difference between Method Overloading and Method Overriding in Java

Here you will learn about difference between method overloading and method overriding in java with program examples. When a class have methods with same name but different arguments list then it is called method overloading. On the other hand if two classes (parent and child) have methods with same name and same arguments list then …

Difference between Method Overloading and Method Overriding in Java Read More »

Difference between Throw and Throws in Java

In this tutorial you will learn about difference between throw and throws keywords in java with example. When we run a java program which contains errors, programmers should handle errors by exception handling (using try, catch and finally blocks) or avoid (throw) it. Otherwise JVM will give error which causes the termination of the running …

Difference between Throw and Throws in Java Read More »

Difference between ArrayList and LinkedList in Java

Here you will learn about difference between arraylist and linkedlist in java i.e. arraylist vs linkedlist. Both ArrayList and LinkedList are similar in many ways like both implement List interface and are non-synchronized. But still there are various differences between them which I have discussed below. Also Read: Difference between ArrayList and Vector in Java Image …

Difference between ArrayList and LinkedList in Java Read More »