Yearly Archives

new operator in Java

When you are declaring a class in java, you are just creating a new data type. A class provides...

new operator in Java

When you are declaring a class in java, you are just creating a new data type. A class provides...

Bitwise operators in Java

Bitwise operators are used to performing manipulation of individual bits of a number. They can be used with any...

Bitwise operators in Java

Bitwise operators are used to performing manipulation of individual bits of a number. They can be used with any...

Operators in Java

Java provides many types of operators which can be used according to the need. They are classified based on...

Operators in Java

Java provides many types of operators which can be used according to the need. They are classified based on...

Does overloading work with Inheritance?

If we have a function in base class and a function with same name in derived class, can the...

Does overloading work with Inheritance?

If we have a function in base class and a function with same name in derived class, can the...

Object Serialization with Inheritance in Java

Serialization is a mechanism of converting the state of an object into a byte stream. Deserialization is the reverse...

Object Serialization with Inheritance in Java

Serialization is a mechanism of converting the state of an object into a byte stream. Deserialization is the reverse...

Using final with Inheritance in Java

final is a keyword in java used for restricting some functionalities. We can declare variables, methods and classes with...

Using final with Inheritance in Java

final is a keyword in java used for restricting some functionalities. We can declare variables, methods and classes with...

Interfaces and Inheritance in Java

A class can extends another class and/ can implement one and more than one interface. // Java program to...

Interfaces and Inheritance in Java

A class can extends another class and/ can implement one and more than one interface. // Java program to...

Inheritance and constructors in Java

In Java, constructor of base class with no argument gets automatically called in derived class constructor. For example, output...

Inheritance and constructors in Java

In Java, constructor of base class with no argument gets automatically called in derived class constructor. For example, output...