Java Programming
Course for Beginners
Ph.D Emad Kerhily
Most used programming languages
45% 80% 75%
C# Python Java
Free / not open source Open Source Open Source
01
Features of Java
Features of Java
Simple
Portable Secure
Object-
Distributed
Oriented
High
Performance
Java Applications
Android Apps
Desktop Apps
Web Responsive Apps
Hadoop and Other AI-based Apps
What can be done with Java examples?
Big data AI Video game
Big Data analysis with Artificial intelligent models Huge video and mobile
distributed programming development and games development
assessment
02
Concepts to Learn
Concepts of Java and its Syntax
Concepts to Learn
Syntax OOP Inheritance
Java syntax and basic Object-oriented programming in Abstraction and generalization
programming concepts Java in Java
Polymorphism Exceptions Design Patterns
Dynamic Run-time Exception handling and generics Design patterns and code reuse
programming in Java in Java in Java
Data Structure Deployment
Important Data structure for Java Java Deployment and tools
Common Java Coding Sequence
Start Declare variables Read data
Create the main class with the Allocate variables with Read data from screen and
main static method suitable data types assign to variables
Process Show End
Call the appropriate functions Display the results on screen Test your app then deploy it
to process data to the end-users
Java Running Sequence
Interpreter (JVM)
program.java program.class
JDK (Java Development Kit)
● JVM is included with a JDK that packages all the necessary tools to make a java program
○ JDK contains
JDK ■ developer tools for coding
■ JRE (Java Runtime Env.)
- libraries & toolkits
- JVM to run java programs
JRE
JVM
Simple data types
Tipo Size/Format Description
Byte 8-bit, 2's complement 1-byte integer
Short 16-bit, 2's complement Short integer
Int 32-bit, 2's complement Whole
Long 64-bit, 2's complement Longint
Float 32-bit, IEEE 754 Real simple precision
Double 64-bit, IEEE 754 True double precision
Char 16 bit character Simple character
Access modifiers
Private Protected Public
Lock access to variables or Lock access to variables and Open access for all
method to the current scope methods to the current scope
+ inherited ones
Non-Acess Modifiers
Abstract Static
Applicable only for Applicable only for
classes and methods methods and variables
Final Synchronized
Applicable for classes, Applicable for methods
methods, and variables and blocks of code
Access Modifiers
Abstract
Public
Static
Modifiers Private
Final
Protected
Synchronized
03
Sample Examples
Codes on IntelliJ IDEA….