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 »