In Java, when we call a method inside a program, the method call is resolved either at the compile time or during runtime, which is… [Read More]
Nested or Inner interfaces in Java
An interface which is declared inside another interface or class is called nested interface. They are also known as inner interface. Since nested interface cannot… [Read More]
Tag or marker interfaces in Java
An empty interface is known as tag or marker interface. For example Serializable, EventListener, Remote(java.rmi.Remote) are tag interfaces, there are few other tag interfaces as… [Read More]
Cloneable Interface in Java – Object Cloning
In this post we are going to discuss about Object cloning with the help of examples. As the name suggests, object cloning is a process… [Read More]
Final method parameters in java
In the last tutorial we discussed about final keyword. In this post we are gonna discuss about final method parameters. You must have seen the… [Read More]
Super keyword in java with example
The super keyword refers to the objects of immediate parent class. Before learning super keyword you must have the knowledge of inheritance in Java so… [Read More]
Final Keyword In Java – Final variable, Method and Class
In this tutorial we will learn the usage of final keyword. The final keyword can be used for variables, methods and classes. We will cover… [Read More]
Java – parameterized constructor with example
A Constructor with arguments(or you can say parameters) is known as Parameterized constructor. As we discussed in the Java Constructor tutorial that a constructor is… [Read More]
Java – Default constructor with example
If you don’t implement any constructor in your class, the Java compiler inserts default constructor into your code on your behalf. You will not see… [Read More]
Abstract method in Java with examples
A method without body (no implementation) is known as abstract method. A method must always be declared in an abstract class, or in other words… [Read More]
Exception handling in Method overriding with example
In the last post we discussed about method overriding. In this post we will see how to do exception handling for overriding and overridden methods…. [Read More]
Difference between method Overloading and Overriding in java
In this tutorial we will discuss the difference between overloading and overriding in Java. If you are new to these terms then refer the following… [Read More]
Method overriding in java with example
Declaring a method in sub class which is already present in parent class is known as method overriding. Overriding is done so that a child… [Read More]
Java – Constructor in Interface?
This is a most frequently asked java interview question. The answer is No, interface cannot have constructors. In this post we will discuss why constructors… [Read More]
Java – Constructor Chaining with example
Calling a constructor from the another constructor of same class is known as Constructor chaining. The real purpose of Constructor Chaining is that you can… [Read More]