Basic Java Language: Difference between revisions

wikademia>Cremisis13
No edit summary
wikademia>Cremisis13
Line 3: Line 3:
This lesson discusses the basics of the Java language, including variables, primitives, operators, statements and Java writing conventions.
This lesson discusses the basics of the Java language, including variables, primitives, operators, statements and Java writing conventions.
==Variables==
==Variables==
Variables are used to store data that can change. There are two main categories of variables, ''reference variables'' and ''primitive variables''. Reference variables are place holders for objects (More on objects in Lesson 4, [[Java Objects and Classes]].) Primitive variables are given a value of a primitive, a basic value. Variables are all given a type when they are declared, such as "int" or "string".
Variables are used to store data into your computer memory, that can change. All you need to worry about is that you can create a variable and change its value. There are two main categories of variables, ''reference variables'' and ''primitive variables''. Reference variables are place holders for objects (More on objects in Lesson 4, [[Java Objects and Classes]].) Primitive variables are given a value of a primitive, a basic value. Variables are all given a type when they are declared, such as "int" or "String".


==Primitive Data Types==
==Primitive Data Types==