reference variable Archive

Define Classes and Objects in Java

This tutorial will help you to define your own classes, including a set of data fields, methods, constructors, using classes by creating objects and invoke methods. Class A class describes the structure and behavior of similar objects. It is also described as a blue print, pattern, generalized , template and description of an realword object. once

Strings in Java

Strings Representing a set of characters altogether, ¬†we can define the data type String is used. For example, Following line declares and initialize a String has an initial value “Welcome to Java” String str = "Welcome to Java"; String is predefined java class same like System, Scanner etc. String is not a primitive data type