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

What's hot

Java Methods - An Introduction to Software Development
Java Methods - An Introduction to Software DevelopmentJava Methods - An Introduction to Software Development
Java Methods - An Introduction to Software Development
RajKumar Radhamanalan
 
Jvm
JvmJvm
Core java
Core javaCore java
Core java
sharad soni
 
concept of core java
concept of core java concept of core java
concept of core java
Mintu_94
 
Java programming - intro
Java programming - introJava programming - intro
Java programming - intro
Kathleen Ong
 
Features of java
Features of javaFeatures of java
Features of java
WILLFREDJOSE W
 
Presentation on Core java
Presentation on Core javaPresentation on Core java
Presentation on Core java
mahir jain
 
Features of java - javatportal
Features of java - javatportalFeatures of java - javatportal
Features of java - javatportal
JavaTportal
 
core java
core javacore java
core java
Roushan Sinha
 
Jdk,jre,jvm
Jdk,jre,jvmJdk,jre,jvm
Jdk,jre,jvm
Kritika Goel
 
Core java course syllabus
Core java course syllabusCore java course syllabus
Core java course syllabus
Papitha Velumani
 
Java basics
Java basicsJava basics
Java basics
suraj pandey
 
Java
JavaJava
Letest
LetestLetest
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
Professional Guru
 
Java introduction with JVM architecture
Java introduction with JVM architectureJava introduction with JVM architecture
Java introduction with JVM architecture
atozknowledge .com
 
The Java Story
The Java StoryThe Java Story
The Java Story
David Parsons
 
Presentation5
Presentation5Presentation5
Presentation5
Natasha Bains
 
Introduction to Core Java Programming
Introduction to Core Java ProgrammingIntroduction to Core Java Programming
Introduction to Core Java Programming
Collaboration Technologies
 

What's hot (19)

Java Methods - An Introduction to Software Development
Java Methods - An Introduction to Software DevelopmentJava Methods - An Introduction to Software Development
Java Methods - An Introduction to Software Development
 
Jvm
JvmJvm
Jvm
 
Core java
Core javaCore java
Core java
 
concept of core java
concept of core java concept of core java
concept of core java
 
Java programming - intro
Java programming - introJava programming - intro
Java programming - intro
 
Features of java
Features of javaFeatures of java
Features of java
 
Presentation on Core java
Presentation on Core javaPresentation on Core java
Presentation on Core java
 
Features of java - javatportal
Features of java - javatportalFeatures of java - javatportal
Features of java - javatportal
 
core java
core javacore java
core java
 
Jdk,jre,jvm
Jdk,jre,jvmJdk,jre,jvm
Jdk,jre,jvm
 
Core java course syllabus
Core java course syllabusCore java course syllabus
Core java course syllabus
 
Java basics
Java basicsJava basics
Java basics
 
Java
JavaJava
Java
 
Letest
LetestLetest
Letest
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
 
Java introduction with JVM architecture
Java introduction with JVM architectureJava introduction with JVM architecture
Java introduction with JVM architecture
 
The Java Story
The Java StoryThe Java Story
The Java Story
 
Presentation5
Presentation5Presentation5
Presentation5
 
Introduction to Core Java Programming
Introduction to Core Java ProgrammingIntroduction to Core Java Programming
Introduction to Core Java Programming
 

Similar to Android course session 1 ( intoduction to java )

Java Programming Environment,JDK,JRE,JVM.pptx
Java Programming Environment,JDK,JRE,JVM.pptxJava Programming Environment,JDK,JRE,JVM.pptx
Java Programming Environment,JDK,JRE,JVM.pptx
sonalipatil225940
 
tut0000021-hevery
tut0000021-heverytut0000021-hevery
tut0000021-hevery
tutorialsruby
 
tut0000021-hevery
tut0000021-heverytut0000021-hevery
tut0000021-hevery
tutorialsruby
 
Java Programming concept
Java Programming concept Java Programming concept
Java Programming concept
Prakash Poudel
 
Java
JavaJava
unit1.pptx
unit1.pptxunit1.pptx
unit1.pptx
PrasadKalal4
 
Java Training at Gateway Software Solutions,Coimbatore
Java Training at Gateway Software Solutions,CoimbatoreJava Training at Gateway Software Solutions,Coimbatore
Java Training at Gateway Software Solutions,Coimbatore
Gateway Software Solutions
 
Assignmentjsnsnshshusjdnsnshhzudjdndndjd
AssignmentjsnsnshshusjdnsnshhzudjdndndjdAssignmentjsnsnshshusjdnsnshhzudjdndndjd
Assignmentjsnsnshshusjdnsnshhzudjdndndjd
tusharjain613841
 
Java introduction
Java introductionJava introduction
Java introduction
The icfai university jaipur
 
Java Introduction
Java IntroductionJava Introduction
Java Introduction
sunmitraeducation
 
JAVA PROGRAM CONSTRUCTS OR LANGUAGE BASICS.pptx
JAVA PROGRAM CONSTRUCTS OR LANGUAGE BASICS.pptxJAVA PROGRAM CONSTRUCTS OR LANGUAGE BASICS.pptx
JAVA PROGRAM CONSTRUCTS OR LANGUAGE BASICS.pptx
AALIM MUHAMMED SALEGH COLLEGE OF ENGINEERING
 
Java developer trainee implementation and import
Java developer trainee implementation and importJava developer trainee implementation and import
Java developer trainee implementation and import
iamluqman0403
 
java intro.pptx
java intro.pptxjava intro.pptx
java intro.pptx
MangaiyarkarasiDurai
 
JavaClassPresentation
JavaClassPresentationJavaClassPresentation
JavaClassPresentation
juliasceasor
 
1.Intro--Why Java.pptx
1.Intro--Why Java.pptx1.Intro--Why Java.pptx
1.Intro--Why Java.pptx
YounasKhan542109
 
chapter_one_Introduction_to_Object_Oriented_Programming_OOP.pptx
chapter_one_Introduction_to_Object_Oriented_Programming_OOP.pptxchapter_one_Introduction_to_Object_Oriented_Programming_OOP.pptx
chapter_one_Introduction_to_Object_Oriented_Programming_OOP.pptx
FiromsaDine
 
Comp102 lec 3
Comp102   lec 3Comp102   lec 3
Comp102 lec 3
Fraz Bakhsh
 
1 java introduction
1 java introduction1 java introduction
1 java introduction
abdullah al mahamud rosi
 
1 java intro
1 java intro1 java intro
Java1 in mumbai
Java1 in mumbaiJava1 in mumbai
Java1 in mumbai
vibrantuser
 

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

Java Programming Environment,JDK,JRE,JVM.pptx
Java Programming Environment,JDK,JRE,JVM.pptxJava Programming Environment,JDK,JRE,JVM.pptx
Java Programming Environment,JDK,JRE,JVM.pptx
 
tut0000021-hevery
tut0000021-heverytut0000021-hevery
tut0000021-hevery
 
tut0000021-hevery
tut0000021-heverytut0000021-hevery
tut0000021-hevery
 
Java Programming concept
Java Programming concept Java Programming concept
Java Programming concept
 
Java
JavaJava
Java
 
unit1.pptx
unit1.pptxunit1.pptx
unit1.pptx
 
Java Training at Gateway Software Solutions,Coimbatore
Java Training at Gateway Software Solutions,CoimbatoreJava Training at Gateway Software Solutions,Coimbatore
Java Training at Gateway Software Solutions,Coimbatore
 
Assignmentjsnsnshshusjdnsnshhzudjdndndjd
AssignmentjsnsnshshusjdnsnshhzudjdndndjdAssignmentjsnsnshshusjdnsnshhzudjdndndjd
Assignmentjsnsnshshusjdnsnshhzudjdndndjd
 
Java introduction
Java introductionJava introduction
Java introduction
 
Java Introduction
Java IntroductionJava Introduction
Java Introduction
 
JAVA PROGRAM CONSTRUCTS OR LANGUAGE BASICS.pptx
JAVA PROGRAM CONSTRUCTS OR LANGUAGE BASICS.pptxJAVA PROGRAM CONSTRUCTS OR LANGUAGE BASICS.pptx
JAVA PROGRAM CONSTRUCTS OR LANGUAGE BASICS.pptx
 
Java developer trainee implementation and import
Java developer trainee implementation and importJava developer trainee implementation and import
Java developer trainee implementation and import
 
java intro.pptx
java intro.pptxjava intro.pptx
java intro.pptx
 
JavaClassPresentation
JavaClassPresentationJavaClassPresentation
JavaClassPresentation
 
1.Intro--Why Java.pptx
1.Intro--Why Java.pptx1.Intro--Why Java.pptx
1.Intro--Why Java.pptx
 
chapter_one_Introduction_to_Object_Oriented_Programming_OOP.pptx
chapter_one_Introduction_to_Object_Oriented_Programming_OOP.pptxchapter_one_Introduction_to_Object_Oriented_Programming_OOP.pptx
chapter_one_Introduction_to_Object_Oriented_Programming_OOP.pptx
 
Comp102 lec 3
Comp102   lec 3Comp102   lec 3
Comp102 lec 3
 
1 java introduction
1 java introduction1 java introduction
1 java introduction
 
1 java intro
1 java intro1 java intro
1 java intro
 
Java1 in mumbai
Java1 in mumbaiJava1 in mumbai
Java1 in mumbai
 

Recently uploaded

20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Zilliz
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
James Anderson
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
sonjaschweigert1
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
Neo4j
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Vladimir Iglovikov, Ph.D.
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Zilliz
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 

Recently uploaded (20)

20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 

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. ( =, +=, -=, *=, /=, %=)