Home  >  Forum  >  Core Java
Post New Query

Flavors of variable in Java Programming Language

joined on
February 03,2015
Asked on March 10,2015
Can any one tell me the flavors of variable that is used in Java ?
joined on
March 15,2013
Replied on March 10,2015

Variables come in two flavors: primitives and reference.

Variables must always be declared with a name and type.

A primitive variable value is the bits representing the value(9, 'a', 11.3331, etc.).

A reference variable value is the bits representing a way to get to an object on the heap.

Write Answer

Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us