Java

Mthods in Java

A java method is a block of code which only runs when it is called.You can pass data, known as parameters, into a method.Methods are used to perform operations, and they are also known as functions. Method Definition methods must be declared within classes. It is defined with the name of the method, followed by parentheses (). Java

Mthods in Java Read More »

Variables in Java

Variables are basically the containers that store the value inside them. Every time we declare a variable, we need to specify the type that will define the kind of value which will be stored in the variable. in short Variables are used to store values in computer’s memory. Declaring Variables in Java To declare a variable,

Variables in Java Read More »

Null keyword in Java

What is null? null is a very important concept in Java. The original intention of inventing null was to denote the absence of something. But over the years it has troubled Java developers with the nasty NullPointerException. Before we start, let’s recall and understand what is variable and what is a value? Variables are basically

Null keyword in Java Read More »