Loading...
question java August 9, 2020 How to create a Singleton in Java?

Singleton means only one instance of a class can exist in the system at any given time.

August 20, 2019 Nested Classes in Java

A class inside another class is called a Nested Class. In other words, as a class has member variables and member methods it can also have member classes.

August 8, 2019 Statics in Java

Static is one of the non-access modifier which has a huge role in Java. It can be usedwith both variables and methods. It is used when we want some variable or method not to be a part of any specific objectof a class rather common for all objects of the class.

June 30, 2019 Constructors in Java

Objects are constructed. You can never make a new object without invoking a constructor (and not just theconstructor of the object’s actual class type, but also the constructor of each of its superclasses).

June 2, 2019 Overloading in Java

Reusing the same method name in the same class or subclass but with different arguments(and optionally, a different return type) is called Method Overloading in Java.

May 29, 2019 Overriding in Java

Reimplementing the inherited method from the parent class in the child class is called Overriding in Java.

May 25, 2019 Object oriented design in Java

Java would have been fully Object Oriented if it didn’t have the primitive types like int, float, boolean, etc. However, it is mostly Object Oriented so you may go through this post if you’re new to Object-Oriented Programming.

May 22, 2019 Access Control in Java

Modifiers fall into two categories:

May 21, 2019 Declarations in Java

In this post, we would see how to declare a class, interface, variable, constructor, and many more.

May 14, 2019 Variables and Literals in Java

Variables are devices that are used to store data, such as a number, or a string of character data so that we can manipulate them later in our program.