How many kinds of variables are in Java? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How many kinds of variables are in Java?

6th Aug 2016, 11:12 AM
Iskandar Ashurov
Iskandar Ashurov - avatar
6 Answers
+ 8
Variable is name of reserved area allocated in memory. There are three types of variables in java: local variable instance variable static variable Also in java, there are two types of data types: primitive data types non-primitive data types Data Type & default size: boolean 1 bit char 2 byte byte 1 byte short 2 byte int 4 byte long 8 byte float 4 byte double 8 byte
7th Aug 2016, 5:21 AM
Mohammad Reza Karimi
Mohammad Reza Karimi - avatar
0
There are alot of them just search on google "java all variable types" and you will find them all!
6th Aug 2016, 11:36 AM
Aady Ahmed
Aady Ahmed - avatar
0
Are you asking datatypes?
6th Aug 2016, 12:35 PM
Jasbinder Singh
Jasbinder Singh - avatar
0
are you asking for variable or datatype?
6th Aug 2016, 5:31 PM
Toffiq Saddique
0
variable is a number whose value doesn't remain same.
6th Aug 2016, 5:32 PM
Toffiq Saddique
0
actually its data type because on the base of this data type you can define different variable thank u :-)
6th Sep 2016, 5:11 AM
Vishvapalsinh Paramar
Vishvapalsinh Paramar - avatar