Lecture 1
Lecture 1
PROGRAMMING IN
JAVA
1. Introductory lesson. Commands and the first program in Java
2. Working with variables, int and String types
3. Conditional operator
4. Cycles, Arrays, Two-dimensional arrays
5. Functions
6. Data types. Introduction to OOP
EDUCATION 7.
8.
Objects
Classes and static, Inner/nested classes
PROGRAMM 9.
10.
Lists and Generics, Collections
OOP: encapsulation, polymorphism
11. OOP: Overloading, overriding, abstract classes
12. Interfaces: comparison with an abstract class, multiple inheritance
13. OOP: composition, aggregation, inheritance
14. Recursion, Introduction to threads
15. Executors
1. About Java advantages, areas of application
INTRODUCT Program structure, main method
ORY Output to screen
LESSON.
Variables in Java
COMMANDS
Increment and Decrement
AND THE
FIRST Concatenation
System.out.println("E ITU
NU"); The
Best
OUTPUT TO System.out.println("Th
e");
System.out.println("Be
SCREEN
st");
System.out.print("ENU ITUThe
"); Best
System.out.print("Best
");
System.out.print("ENU ENUTheBest
");
System.out.print("The
");
System.out.print("Best
VARIABLES IN
JAVA
DATA TYPES IN JAVA
• byte (1 byte, from -128 to 127)
• short (2 bytes, from -32,768 to 32,767)
• int (4 bytes, from -2^31 to 2^31 - 1)
• long (8 bytes, from -2^63 to 2^63 - 1)
PRIMITIVE • float (4 bytes, single-precision floating-point
DATA TYPES numbers)
• double (8 bytes, double-precision floating-point
numbers)
• char (2 bytes, stores a single Unicode character)
• boolean (1 bit, stores either true or false)
• Classes: either custom or built-in classes like
REFERENCE String, ArrayList, etc.
• Interfaces: define contracts that can be
(NON- implemented by classes.