CodeKru
Menu

Tutorial archive

Category: <span>Java-oops concepts</span>

Browse individual tutorials and references.

10 published articles

Java

Non-Access Modifiers In Java

We have discussed the access modifiers in Java which controls visibility and accessibility. This post will discuss the Non-access modifiers of Java.

Java

Object life cycle in Java

Earlier, we discussed the Java objects and classes , and now we will talk about the object life cycle in Java . An object's life cycle starts when it's created until it goes out of scope or dereferenced.

Java

Can we overload and override the main() method in Java?

In this post, we will look at whether we can overload or override the main method in Java? But first, we would recommend you read the articles about method overloading and method overriding to understand these concepts.

Java

A Guide to Method Overriding in Java with Examples

In our previous article, we learned about the inheritance feature of Object-Oriented Programming, where a subclass or a child class inherits the properties of the superclass or the parent class.

Java

Inheritance in Java ( Is-A relationship)

Inheritance is one of the pillars of the OOP ( Object Oriented Programming), and it is almost everywhere in Java.

Java

Access Modifiers in Java with Examples

There are two modifiers in Java - access modifiers and non-access modifiers . In this post, we will discuss the access modifiers in Java.

Java

Java Classes and Objects

Classes and Objects are at the heart of every Object-oriented programming language and java is not an exception. What is a class?

Java

Ambiguity for the null parameter in method overloading

Method overloading is an oops concept where two methods have the same name but different parameters. In method overloading, we can have parameters that can match multiple overloaded methods.

Java

Method Overloading in Java

Method overloading in java allows multiple methods to have the same name but with different numbers or types of parameters. Methods return type may or may not match.

Java

equals() and hashcode() methods in Java

In this post, we will discuss equals() and hashcode() methods defined in the Object class of Java. We will also learn how to use them while creating our own classes.