Java – Method

In Java, methods are a group of statements that perform a specific task. In this tutorial, we will learn what is method, how to define the method in Java, and how to use methods with lots of examples. What is a Method Suppose, we need to write some fixed lines of code regularly to perform…

Read More »

Java – Class and Object

In the previous tutorial, we had discussed the OOPs concept in Java. In this chapter, we will learn how to define a class and creating an object in Java. We will also have an example of accessing data members and member functions of a class. Define a Class In Java Let’s start with how to…

Read More »

Java – OOPs Concept

Object-Oriented Programming or OOPs is a modern way of programming to use real-life entities. Java uses features of OOPs, that’s why java is known as an Object-Oriented Programming Language. The core concept of OOP is to bind data and function in a single unit with reuse of the code principal. Features of OOPs. Object Class…

Read More »