Tutorial archive
Browse individual tutorials and references.
10 published articles
We have discussed the access modifiers in Java which controls visibility and accessibility. This post will discuss the Non-access modifiers of 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.
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.
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.
Inheritance is one of the pillars of the OOP ( Object Oriented Programming), and it is almost everywhere in Java.
There are two modifiers in Java - access modifiers and non-access modifiers . In this post, we will discuss the access modifiers in Java.
Classes and Objects are at the heart of every Object-oriented programming language and java is not an exception. What is a class?
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.
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.
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.