SlideShare a Scribd company logo
ANDROID COURSE
WITH JAVA
Developed by Keroles Magdy
keroles.m.yacoub@gmail.com
2019 ©
Welcome !
Steps & Rules
Difference of this course
• Best practice for each topic.
• Simple project in every session.
• Problem solving.
• Latest technology.
Session topics :-
• Binary system & Machine language.
• Meaning of programing.
• What is java?.
• JDK, JRE and JVM.
• Tools & Setups.
• Interpreter & Compiler.
• Hello java program.
• Data Types & Variables.
• Keywords & Comments.
• Operators.
Binary system & Machine language:-
• Binary system uses only two symbols: typically "0" (zero) and "1" (one).
• "binary" comes from "Bi-" meaning two, like "bi-" in words such as
"bicycle" (two wheels) or "binocular" (two eyes).
• Machine language is the only language a computer is capable of
understanding.
• 01001000 01100101 01101100 01101100 01101111 00100000 01010111
01101111 01110010 01101100 01100100
Hello World
Meaning of programing :-
• process of designing and building an executable computer program
Problem
Definition
Problem
Analysis
Coding &
Documentation
Testing &
Debugging
Maintenance
What is java? :-
• Java is a programming language first released by Sun
Microsystems in 1995. Java is fast, secure, and reliable. From
laptops to datacenters, game consoles to scientific supercomputers,
cell phones to the Internet.
Java is everywhere!
JDK, JRE and JVM :-
+
+
JDK
Dev
Tools
JRE
+
Lib Files
JVM
JDK, JRE and JVM :-
• JDK, ( Java Development Kit ) provides environment to develop and
run the Java programs.
• Note : JDK is only used by Java Developers.
• JRE, (Java Runtime Environment) is an environment to run program
which are already developed.
• JVM, (Java Virtual machine) is responsible for executing the java
program line by line hence it is also known as interpreter.
Tools & Setups :-
• https://www.oracle.com/technetwork/java/javase/downloads/jdk13-
downloads-5672538.html
• https://www-eu.apache.org/dist/netbeans/netbeans/11.1/Apache-
NetBeans-11.1-bin-windows-x64.exe
Interpreter & Compiler :-
• Interpreter, is a computer program, which coverts each high-level
program statement into the machine code.
• Convert code into machine code when the program is run.
InterpreterSource Code Output
Interpreter & Compiler :-
• Compile, will convert the code into machine code (create an exe)
before program run.
• Cannot fix errors found in that program.
CompilerSource Code OutputMachine Code
Break
Hello java program :-
• Code :
• Output :
• Hello, World!
Hello java program :-
• Package, group of classes.
• Class, consist of method and variable.
• Function, a set of instructions that perform a task.
• Method, a set of instructions that are associated with an object.
Data Types & Variables :-
• Primitive datatypes, are predefined by the language and named by a
keyword.
• EX : ( boolean, char, byte, short, int, long, float and double ).
• Non- Primitive datatypes, (Reference Datatypes) created using
defined constructors of the classes.
• EX : ( Classes, Arrays and String ).
Data Types & Variables :-
• Size in memory.
Data Type Default size
boolean 1 bit
char 2 byte
byte 1 byte
short 2 byte
int 4 byte
long 8 byte
float 4 byte
double 8 byte
Data Types & Variables :-
• In java syntax
boolean myBool = true; // true or false
byte a = 68; // -128 to 127
short myNum = 5000; // -32768 to 32767
int myNum = 5; // -2147483648 to 2147483647
long myNum = 15000000000L; // -9223372036854775808
float myNum = 5.75f; // 3.4e−038 to 3.4e+038
double myNum = 19.99d; // 1.7e−308 to 1.7e+308
char a = ‘A’;
String myText = "Hello";
Data Types & Variables :-
• Variables, is a container which holds the value while the java
program is executed.
• Types : (local variable - instance variable - static variable ).
• Local Variable, A variable declared inside the body of the method.
• Instance Variable, A variable declared inside the class but outside the
body of the method.
• Static variable, share among all the instances of the class. Memory
allocation for static variable happens only once when the class is
loaded in the memory.
Keywords & Comments :-
• Keywords, are also known as (reserved words). They are particular
words which acts as a key to a code
• EX : ( abstract-boolean-break-class-return )
• Comments, are statements that are not executed by the compiler and
interpreter. Used to explanation about the variable, method, class
• Types :
1) Java Single Line Comment ( // )
2) Java Multi Line Comment ( /**/ )
3) Java Documentation Comment ( /***/ )
Operators :-
• Unary Operator. ( postfix, prefix )
• Arithmetic Operator. ( *, / ,% , +, -)
• Relational Operator. ( <, >, <=, >=, ==, !=, instanceof )
• Logical Operator. ( &&, ||)
• Ternary Operator.
• Assignment Operator. ( =, +=, -=, *=, /=, %=)
the End

More Related Content

PPTX
DOCX
JDK,JRE,JVM
PPTX
Features of JAVA Programming Language.
PPT
Java introduction
PPTX
JAVA ENVIRONMENT
PPTX
JRE , JDK and platform independent nature of JAVA
PPTX
Object Oriented Programming in Java
DOCX
Java and its features
JDK,JRE,JVM
Features of JAVA Programming Language.
Java introduction
JAVA ENVIRONMENT
JRE , JDK and platform independent nature of JAVA
Object Oriented Programming in Java
Java and its features

What's hot (19)

PPT
Java Methods - An Introduction to Software Development
PPTX
Core java
PPTX
concept of core java
PPSX
Java programming - intro
PPTX
Features of java
PPTX
Presentation on Core java
PPTX
Features of java - javatportal
PPTX
core java
PPTX
Jdk,jre,jvm
PDF
Core java course syllabus
PPT
Java basics
PPTX
PDF
Introduction to Java
PDF
Java introduction with JVM architecture
PPTX
The Java Story
PPTX
Presentation5
PPTX
Introduction to Core Java Programming
Java Methods - An Introduction to Software Development
Core java
concept of core java
Java programming - intro
Features of java
Presentation on Core java
Features of java - javatportal
core java
Jdk,jre,jvm
Core java course syllabus
Java basics
Introduction to Java
Java introduction with JVM architecture
The Java Story
Presentation5
Introduction to Core Java Programming
Ad

Similar to Android course session 1 ( intoduction to java ) (20)

PPTX
Chapter-introduction about java programming
PPTX
Modern_2.pptx for java
PPT
skill lab-java interview preparation questions.ppt
PPTX
Java (1).ppt seminar topics engineering
PPT
Java core - Detailed Overview
PPTX
lecture 6
PPTX
Introduction to computer science
PDF
M251_Meeting 1(M251_Meeting 1_updated.pdf)
PPTX
Java platform
PPT
Presentation on programming language on java.ppt
PPTX
Programming in java basics
PPTX
Learning core java
PPTX
Assignmentjsnsnshshusjdnsnshhzudjdndndjd
PPT
CSL101_Ch1.ppt
PPTX
CSL101_Ch1.pptx
PPTX
CSL101_Ch1.pptx
PPT
CSL101_Ch1.ppt
PPTX
UNIT – 2 Features of java- (Shilpa R).pptx
PDF
Core Java Tutorial
PPTX
Android webinar class_java_review
Chapter-introduction about java programming
Modern_2.pptx for java
skill lab-java interview preparation questions.ppt
Java (1).ppt seminar topics engineering
Java core - Detailed Overview
lecture 6
Introduction to computer science
M251_Meeting 1(M251_Meeting 1_updated.pdf)
Java platform
Presentation on programming language on java.ppt
Programming in java basics
Learning core java
Assignmentjsnsnshshusjdnsnshhzudjdndndjd
CSL101_Ch1.ppt
CSL101_Ch1.pptx
CSL101_Ch1.pptx
CSL101_Ch1.ppt
UNIT – 2 Features of java- (Shilpa R).pptx
Core Java Tutorial
Android webinar class_java_review
Ad

Recently uploaded (20)

PDF
Electronic commerce courselecture one. Pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
Spectroscopy.pptx food analysis technology
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Big Data Technologies - Introduction.pptx
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
KodekX | Application Modernization Development
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
cuic standard and advanced reporting.pdf
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Cloud computing and distributed systems.
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Machine learning based COVID-19 study performance prediction
Electronic commerce courselecture one. Pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Reach Out and Touch Someone: Haptics and Empathic Computing
The AUB Centre for AI in Media Proposal.docx
Building Integrated photovoltaic BIPV_UPV.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Spectroscopy.pptx food analysis technology
Review of recent advances in non-invasive hemoglobin estimation
Mobile App Security Testing_ A Comprehensive Guide.pdf
Big Data Technologies - Introduction.pptx
Programs and apps: productivity, graphics, security and other tools
KodekX | Application Modernization Development
Network Security Unit 5.pdf for BCA BBA.
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Dropbox Q2 2025 Financial Results & Investor Presentation
cuic standard and advanced reporting.pdf
Empathic Computing: Creating Shared Understanding
Cloud computing and distributed systems.
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Machine learning based COVID-19 study performance prediction

Android course session 1 ( intoduction to java )

  • 1. ANDROID COURSE WITH JAVA Developed by Keroles Magdy keroles.m.yacoub@gmail.com 2019 ©
  • 4. Difference of this course • Best practice for each topic. • Simple project in every session. • Problem solving. • Latest technology.
  • 5. Session topics :- • Binary system & Machine language. • Meaning of programing. • What is java?. • JDK, JRE and JVM. • Tools & Setups. • Interpreter & Compiler. • Hello java program. • Data Types & Variables. • Keywords & Comments. • Operators.
  • 6. Binary system & Machine language:- • Binary system uses only two symbols: typically "0" (zero) and "1" (one). • "binary" comes from "Bi-" meaning two, like "bi-" in words such as "bicycle" (two wheels) or "binocular" (two eyes). • Machine language is the only language a computer is capable of understanding. • 01001000 01100101 01101100 01101100 01101111 00100000 01010111 01101111 01110010 01101100 01100100 Hello World
  • 7. Meaning of programing :- • process of designing and building an executable computer program Problem Definition Problem Analysis Coding & Documentation Testing & Debugging Maintenance
  • 8. What is java? :- • Java is a programming language first released by Sun Microsystems in 1995. Java is fast, secure, and reliable. From laptops to datacenters, game consoles to scientific supercomputers, cell phones to the Internet. Java is everywhere!
  • 9. JDK, JRE and JVM :- + + JDK Dev Tools JRE + Lib Files JVM
  • 10. JDK, JRE and JVM :- • JDK, ( Java Development Kit ) provides environment to develop and run the Java programs. • Note : JDK is only used by Java Developers. • JRE, (Java Runtime Environment) is an environment to run program which are already developed. • JVM, (Java Virtual machine) is responsible for executing the java program line by line hence it is also known as interpreter.
  • 11. Tools & Setups :- • https://www.oracle.com/technetwork/java/javase/downloads/jdk13- downloads-5672538.html • https://www-eu.apache.org/dist/netbeans/netbeans/11.1/Apache- NetBeans-11.1-bin-windows-x64.exe
  • 12. Interpreter & Compiler :- • Interpreter, is a computer program, which coverts each high-level program statement into the machine code. • Convert code into machine code when the program is run. InterpreterSource Code Output
  • 13. Interpreter & Compiler :- • Compile, will convert the code into machine code (create an exe) before program run. • Cannot fix errors found in that program. CompilerSource Code OutputMachine Code
  • 14. Break
  • 15. Hello java program :- • Code : • Output : • Hello, World!
  • 16. Hello java program :- • Package, group of classes. • Class, consist of method and variable. • Function, a set of instructions that perform a task. • Method, a set of instructions that are associated with an object.
  • 17. Data Types & Variables :- • Primitive datatypes, are predefined by the language and named by a keyword. • EX : ( boolean, char, byte, short, int, long, float and double ). • Non- Primitive datatypes, (Reference Datatypes) created using defined constructors of the classes. • EX : ( Classes, Arrays and String ).
  • 18. Data Types & Variables :- • Size in memory. Data Type Default size boolean 1 bit char 2 byte byte 1 byte short 2 byte int 4 byte long 8 byte float 4 byte double 8 byte
  • 19. Data Types & Variables :- • In java syntax boolean myBool = true; // true or false byte a = 68; // -128 to 127 short myNum = 5000; // -32768 to 32767 int myNum = 5; // -2147483648 to 2147483647 long myNum = 15000000000L; // -9223372036854775808 float myNum = 5.75f; // 3.4e−038 to 3.4e+038 double myNum = 19.99d; // 1.7e−308 to 1.7e+308 char a = ‘A’; String myText = "Hello";
  • 20. Data Types & Variables :- • Variables, is a container which holds the value while the java program is executed. • Types : (local variable - instance variable - static variable ). • Local Variable, A variable declared inside the body of the method. • Instance Variable, A variable declared inside the class but outside the body of the method. • Static variable, share among all the instances of the class. Memory allocation for static variable happens only once when the class is loaded in the memory.
  • 21. Keywords & Comments :- • Keywords, are also known as (reserved words). They are particular words which acts as a key to a code • EX : ( abstract-boolean-break-class-return ) • Comments, are statements that are not executed by the compiler and interpreter. Used to explanation about the variable, method, class • Types : 1) Java Single Line Comment ( // ) 2) Java Multi Line Comment ( /**/ ) 3) Java Documentation Comment ( /***/ )
  • 22. Operators :- • Unary Operator. ( postfix, prefix ) • Arithmetic Operator. ( *, / ,% , +, -) • Relational Operator. ( <, >, <=, >=, ==, !=, instanceof ) • Logical Operator. ( &&, ||) • Ternary Operator. • Assignment Operator. ( =, +=, -=, *=, /=, %=)