free classified ads and leads
domain website price


Java Reference Data Types

Java Question and Answer and Tutorial

    • Reference variables are created using defined constructors of the classes. They are used to access objects. These variables are declared to be of a specific type that cannot be changed. For example, Employee, Puppy etc.
    • Class objects, and various type of array variables come under reference data type.
    • Default value of any reference variable is null.
    • A reference variable can be used to refer to any object of the declared type or any compatible type.
    • Example : Animal animal = new Animal("giraffe");
Bookmark and Share




Gallery

Related Topics

Comments



Submit Reviews:


(Enter the characters seen on the image below.)



Promotional Ads

Advertisement

Movers and Packers Zirakpur
zirakpur
Zirakpur

ShreeJi Packers and Movers Chandigarh
Booth No. 6, Plot No. 2212 Pipli Wala Town, Manimarjra, Chandigarh
Chandigarh