What is Jar War and Ear files in Java

In this tutorial we see what is Jar , War and Ear files in Java enterprise development, and also see what is the difference and usage of these files. What is Jar ? How to Create Jar file ?

  In above jar command we are creating test.jar which have HelloWorld.class file. For more info […]

what is the difference between comparable and comparator

In this tutorial we will learn what is the difference between comparable and comparator interfaces , and when we need to use comparable and when we need to use comparator. Basically “what is the difference between comparable and comparator ? ” is one of the Java interview question,  and in Java we have two interfaces which are using to […]

When we use interface and abstract class in java

In this tutorial we will learn “when we use interface and abstract class in java” and what is the significance of interface and abstract class The question “when we use interface and abstract class in java ? ” is very common in lot of  java interviews , let us have a look. To answer the above question, we […]

what is difference between abstract class and interface in java

In this tutorial we will learn what is the significance of  Abstract class and Interface  and what is the  difference between abstract class and interface in java. In java basically to implement/achieve the one of powerful feature “abstraction” we need use either Abstract class and Interface, both have abstract methods. There are some cases when […]

What is final, finally and finalize in Java?

In this Article we will get know the significance of final, finally and finalize in Java. final: Final is a keyword in Java,which can be applied to variables, methods, class and local variables in Java What is final variable in Java? The variable which is declared with ‘final’ is know as final variable, It can be […]

What is Fail Fast vs Fail Safe Iterator in Java

In this tutorial we will learn what is Fail Fast what is  Fail Safe Iterator in java . This is the one of the main question in interview regarding Concurrency management.Before looking into “Fail Fast vs Fail Safe” we should aware of the term “Concurrent Modification” What is Concurrent Modification ? Is nothing but one […]