0% found this document useful (0 votes)
7 views16 pages

Lecture 1

Uploaded by

kudasov244
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views16 pages

Lecture 1

Uploaded by

kudasov244
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 16

OBJECT ORIENTED

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

PROGRAM IN Comments in code


JAVA IDE for Java
ABOUT JAVA ADVANTAGES, AREAS OF
APPLICATION
• Advantages: • Application:
• Cross-platform
• Web applications
• Automatic memory management
• Financial (banking) programs
• Speed ​of operation (JIT compiler)
• Backward compatibility • Android applications
• Object-oriented • Desktop applications, development
• Static typing (fail-fast) tools
• Code as documentation • Embedded systems
• Many open source libraries and frameworks
• Large community
PROGRAM STRUCTURE,
MAIN METHOD
Commands What will be displayed on the screen?

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

DIFFERENCES BETWEEN PRINTLN() AND PRINT()


System.out.println("Th
e");

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.

PRIMITIVE) • Arrays: objects that contain elements of a single


type, e.g., int[].
DATA TYPES • Enumerations (Enums): special classes for
defining sets of fixed constants.
INCREMENT AND
DECREMENT
CONCATENATION
String String str1 = "Hello";

String String str2 = "World";

String String result = str1 + " " + str2; // "Hello World"


COMMENTS IN
JAVA
IDE FOR JAVA

You might also like