Слайд 1
Java Syntax
Data Types, Variables, Operators, Expressions, Statements, Console I/O, Conditional Statements
SoftUni Team
Technical Trainers
Software University
http://softuni.bg
Слайд 2
Primitive Data Types
Variables
Operators and Expressions
Console-Based Input and Output
Conditional Statements
Loops
Methods
Table of Contents
Слайд 3
Primitive Data Types in Java
Слайд 4
Computers are machines that process data
Data is stored in the computer memory in variables
Variables have name, data type and value
Example of variable definition and assignment in Java
When processed, data is stored back into variables
How Computing Works?
int count = 5;
Data type
Variable name
Variable value
Слайд 5
A data type:
Is a domain of values of similar characteristics
Defines the type of information stored in the
computer memory (in a variable)
Examples:
Positive integers: 1, 2, 3, …
Alphabetical characters: a, b, c, …
Days of week: Monday, Tuesday, …
What Is a Data Type?
Слайд 6
A data type has:
Name (Java keyword, e.g. int)
Size (how much memory is used)
Default value
Example:
Integer numbers in C#
Name: int
Size: 32 bits (4 bytes)
Default value: 0
Data Type Characteristics
0 коментара
За да коментирате, трябва да сте влезли в профила си.
Влезте