BeginnersBook

  • Home
  • Java
    • Java OOPs
    • Java Collections
    • Java Examples
  • C
    • C Examples
  • C++
    • C++ Examples
  • DBMS
  • Computer Network
  • Python
    • Python Examples
  • More…
    • jQuery
    • Kotlin
    • WordPress
    • SEO
    • JSON
    • JSP
    • JSTL
    • Servlet
    • MongoDB
    • XML
    • Perl

Nested or Inner interfaces in Java

By Chaitanya Singh | Filed Under: 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

By Chaitanya Singh | Filed Under: 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

By Chaitanya Singh | Filed Under: java

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

By Chaitanya Singh | Filed Under: 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

By Chaitanya Singh | Filed Under: java

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

By Chaitanya Singh | Filed Under: java

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

By Chaitanya Singh | Filed Under: java

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

By Chaitanya Singh | Filed Under: java

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

By Chaitanya Singh | Filed Under: java

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

By Chaitanya Singh | Filed Under: java

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

By Chaitanya Singh | Filed Under: 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

By Chaitanya Singh | Filed Under: java

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?

By Chaitanya Singh | Filed Under: java

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

By Chaitanya Singh | Filed Under: java

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]

Java – private constructor example

By Chaitanya Singh | Filed Under: java

The use of private constructor is to serve singleton classes. A singleton class is one which limits the number of objects creation to one. Using… [Read More]

  • 1
  • 2
  • 3
  • Next Page »

Copyright © 2012 – 2022 BeginnersBook . Privacy Policy . Sitemap