Likes: 0
Results 1 to 1 of 1
Thread: [Java] Variables
-
10-02-10, 12:46 PM #1
[Java] Variables
Register to remove this adAlright so these are easy to memorize and easy to understand as well.
When a variable is created, it is temporarily stored in your RAM(Random Access Memory).
The variables for java are the following:
byte
short
int
long
float
double
boolean
char
Boolean values, as many of you with coding backgrounds know, must return true or false.
Now, a char varaible is from ASCII. You can find a list of what letter is what value just by googling.
int is the most commonly used variable. It can only hold a whole number, same goes for short, long, and byte.
A float variable can hold a vast number of decimal places while double only shows 2 places after the decimal.
You can declare a variable similar to this example.
Code:int var123;
Code:int var123 = 2;
Code:int var1, var2, var3, var4;
I guess this just about covers it. If I remember something else to add or you guys have something I can add let me know I'll be happy to add onto it.
› See More: [Java] Variables
Related Threads - Scroll Down after related threads if you are only interested to view replies for above post/thread
Visitors found this page by searching for:
Nobody landed on this page from a search engine, yet!
SEO Blog