Get Started. It's Free
or sign up with your email address
Rocket clouds
DATA types by Mind Map: DATA types

1. Int

1.1. is short for integer, which are all positive and negative numbers, including zero

1.2. data type only allows values between -2,147,483,648 and 2,147,483,647.

2. Char

2.1. is used to represent single characters. That includes the keys on a keyboard that are used to produce text.

2.2. values must be enclosed in single quotes, like this: 'G'

3. Boolean

3.1. can only be either true or false.

4. Variable

4.1. what is it ?

4.1.1. Identifier of the memory location used to store data, such as a number, or a string of character data.

4.2. In Java, all variables must have a specified data type.

4.3. Name

4.3.1. All identifiers should begin with a letter (A to Z or a to z), currency character ($) or an underscore (_).

4.3.1.1. Examples of illegal identifiers: 123abc, -salary.

4.3.1.2. Examples of legal identfiers :age, $salary, _value, __1_value.

4.3.2. Case Sensitive

4.3.2.1. Example: Rose not like rose

4.4. Declaration Statements

4.4.1. int age=42; boolean isStudent=true; char grade='A';