SlideShare a Scribd company logo
Basic Java Learning Documents.
By Mahadi Hasan.
JAVA OVERVIEW
Java programming language was originally developed by Sun Microsystems which was initiated
by James Gosling and released in 1995 as core component of Sun Microsystems' Java platform
(Java 1.0
[J2SE]).The latest release of the Java Standard Edition is Java SE 8. With the advancement of
Java and its widespread popularity, multiple configurations were built to suit
various types of platforms.
For example
: J2EE for Enterprise Applications, J2ME for Mobile Applications.The new J2 versions
wererenamed as Java SE, Java EE,and Java ME respectively. Java is guaranteed to be Write
Once, Run Anywhere.
HISTORY OF JAVA
James Gosling initiated Java language project in June 1991 for use in one of his many set-top
box projects. The language, initially called ‘Oak’ after an oak tree that stood outside Gosling's
office, also went by the name ‘Green’ and ended up later being renamed as Java, from a list of
random words.Sun released the first public implementation as Java 1.0 in 1995. It promised
Write Once, Run Anywhere (WORA), providing no-cost run-times on popular platforms. On 13
November,2006, Sun released much of Java as free and open source software under the terms
of the GNU General Public License (GPL).On 8 May,2007, Sun finished the process, making all
of Java's core code free and open-source, aside from a small portion of code to which Sun did
not hold the copyright.
Tools We Will Need
• Personal Computer
• Linux 7.1 or Windows xp/7/8 operating system
• Java JDK 8
• IntelIJ, NetBeens etc.
Java – Basic Syntax
About Java programs, it is very important to keep in mind the following points.
• Class Names
• Case Sensitivity -HelloWorld
• Method Names –public void helloWorld()
• Program File Name
• public static void main(String args[])
Java Modifiers
• Access Modifiers- default, public, private, protected.
• Non-Access Modifiers- final, abstract.
Java KeyWord
The flowing list show The reserved word in java.
• Class, public, void, String, int, char, byte, assert, Boolean, break,
• Case, catch, if, else ctc.
Comments In Java
Java Supports Single line and multi-line comments.
• Multi-line comment – example /* */
• Single-line Comments –example //
Java Object and Classes
Java is an Object-Oriented Language. Java Support Object Oriented feature.
• Objects
• Class
• Abstraction
• Method
• Inheritance
• Polymorphism
• Etc.
Objects - Software objects also have a state and a behavior. A software object's state is stored
in fields and behavior is shown via methods .So in software development, methods operate on
the internal state of an object and the object-to-object communication is done via methods
Classes- A class is a blue print from which individual objects are created.
Example :- public class Calc{
Public void add(){
Int a = 2 + 2;
System.out.println(a);
}
Public void subs(){
Int a = 2 - 2;
System.out.println(a);
}
Public void multi(){
Int a = 2 * 2;
System.out.println(a);
}
Public void divi(){
Int a = 2 / 2;
System.out.println(a);
}
}
Constructors
When discussing about classes, one of the most important sub topic would be constructors.
Every class has a constructor. If we do not explicitly write a constructor for a class , the Java
compiler builds a default constructor for that class.
Creating Objects
• Declaration – Hello obj;
• Instantiation – new keywork;
• Initialization –new keyword with call constructor.
What is Next?
In the next section, we will be discussing about Basic Operators used in Java
Language. The chapter will give you an overview of how these operators can be used
during application development.

More Related Content

PPSX
Core java lessons
PPTX
Core Java
PPTX
Java fundamentals 2
PDF
Introduction to Java Programming
PPT
Java for the Beginners
PPTX
java training in jaipur|java training|core java training|java training compa...
ODP
Introduction To Java.
PPTX
Java basic-tutorial for beginners
Core java lessons
Core Java
Java fundamentals 2
Introduction to Java Programming
Java for the Beginners
java training in jaipur|java training|core java training|java training compa...
Introduction To Java.
Java basic-tutorial for beginners

What's hot (20)

PPT
Basics of java programming language
PPTX
JAVA PROGRAMMING
PPTX
Introduction to JAVA
PPTX
Introduction to Java Programming
PPTX
What is java?-Saurabh Upadhyay
PPT
Presentation on java
PPTX
Manuel - SPR - Intro to Java Language_2016
PPTX
Java basics
PDF
Basic java tutorial
PDF
JAVA Object Oriented Programming (OOP)
PPT
INTRODUCTION TO JAVA APPLICATION
PPTX
PPTX
1 java programming- introduction
PPT
Java introduction
PPTX
Basic online java course - Brainsmartlabs
PPTX
Chapter 1
DOCX
Java and its features
DOCX
Java interview questions and answers for cognizant By Data Council Pune
PPTX
Java Introduction
PDF
Introduction to java (revised)
Basics of java programming language
JAVA PROGRAMMING
Introduction to JAVA
Introduction to Java Programming
What is java?-Saurabh Upadhyay
Presentation on java
Manuel - SPR - Intro to Java Language_2016
Java basics
Basic java tutorial
JAVA Object Oriented Programming (OOP)
INTRODUCTION TO JAVA APPLICATION
1 java programming- introduction
Java introduction
Basic online java course - Brainsmartlabs
Chapter 1
Java and its features
Java interview questions and answers for cognizant By Data Council Pune
Java Introduction
Introduction to java (revised)
Ad

Similar to Java trainingcourse(1) (20)

PPTX
Prominent economists and its functions free ppt slide
PPTX
Java basics
PPTX
Module1_htryjtjhkrhdegtfhsfhrdgfhpart1.pptx
PPT
JAVA_INTRODUCTION- History, Constructor, Inheritance
PPTX
1 .java basic
PPTX
PROGRAMMING IN JAVA unit 1.pptx
PPTX
Basics of JAVA programming
PPT
JAVA_INTRODUCTION- History, Constructor, Inheritance
PDF
Java Concepts and Features-Programming in Java
PPTX
Java
PDF
INTRO TO JAVA.pdf
PPTX
PPTX
PPTX
PPTX
PPTX
PPTX
Java Course In Thane,Mumbai
PPTX
OOP with Java
PPTX
Basic Object Oriented Programming in JAVA.pptx
PDF
what is java.pdf
Prominent economists and its functions free ppt slide
Java basics
Module1_htryjtjhkrhdegtfhsfhrdgfhpart1.pptx
JAVA_INTRODUCTION- History, Constructor, Inheritance
1 .java basic
PROGRAMMING IN JAVA unit 1.pptx
Basics of JAVA programming
JAVA_INTRODUCTION- History, Constructor, Inheritance
Java Concepts and Features-Programming in Java
Java
INTRO TO JAVA.pdf
Java Course In Thane,Mumbai
OOP with Java
Basic Object Oriented Programming in JAVA.pptx
what is java.pdf
Ad

Recently uploaded (20)

PDF
Phylum Arthropoda: Characteristics and Classification, Entomology Lecture
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
UTS Health Student Promotional Representative_Position Description.pdf
PPTX
Cardiovascular Pharmacology for pharmacy students.pptx
PPTX
Congenital Hypothyroidism pptx
PDF
Mga Unang Hakbang Tungo Sa Tao by Joe Vibar Nero.pdf
PPTX
NOI Hackathon - Summer Edition - GreenThumber.pptx
PPTX
UNDER FIVE CLINICS OR WELL BABY CLINICS.pptx
PDF
3.The-Rise-of-the-Marathas.pdfppt/pdf/8th class social science Exploring Soci...
PPTX
PPTs-The Rise of Empiresghhhhhhhh (1).pptx
PPTX
Skill Development Program For Physiotherapy Students by SRY.pptx
PPTX
Strengthening open access through collaboration: building connections with OP...
PPTX
Introduction and Scope of Bichemistry.pptx
PDF
Landforms and landscapes data surprise preview
PDF
Electrolyte Disturbances and Fluid Management A clinical and physiological ap...
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
An introduction to Prepositions for beginners.pptx
PDF
Sunset Boulevard Student Revision Booklet
PPTX
How to Manage Bill Control Policy in Odoo 18
PDF
High Ground Student Revision Booklet Preview
Phylum Arthropoda: Characteristics and Classification, Entomology Lecture
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
UTS Health Student Promotional Representative_Position Description.pdf
Cardiovascular Pharmacology for pharmacy students.pptx
Congenital Hypothyroidism pptx
Mga Unang Hakbang Tungo Sa Tao by Joe Vibar Nero.pdf
NOI Hackathon - Summer Edition - GreenThumber.pptx
UNDER FIVE CLINICS OR WELL BABY CLINICS.pptx
3.The-Rise-of-the-Marathas.pdfppt/pdf/8th class social science Exploring Soci...
PPTs-The Rise of Empiresghhhhhhhh (1).pptx
Skill Development Program For Physiotherapy Students by SRY.pptx
Strengthening open access through collaboration: building connections with OP...
Introduction and Scope of Bichemistry.pptx
Landforms and landscapes data surprise preview
Electrolyte Disturbances and Fluid Management A clinical and physiological ap...
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
An introduction to Prepositions for beginners.pptx
Sunset Boulevard Student Revision Booklet
How to Manage Bill Control Policy in Odoo 18
High Ground Student Revision Booklet Preview

Java trainingcourse(1)

  • 1. Basic Java Learning Documents. By Mahadi Hasan. JAVA OVERVIEW Java programming language was originally developed by Sun Microsystems which was initiated by James Gosling and released in 1995 as core component of Sun Microsystems' Java platform (Java 1.0 [J2SE]).The latest release of the Java Standard Edition is Java SE 8. With the advancement of Java and its widespread popularity, multiple configurations were built to suit various types of platforms. For example : J2EE for Enterprise Applications, J2ME for Mobile Applications.The new J2 versions wererenamed as Java SE, Java EE,and Java ME respectively. Java is guaranteed to be Write Once, Run Anywhere. HISTORY OF JAVA James Gosling initiated Java language project in June 1991 for use in one of his many set-top box projects. The language, initially called ‘Oak’ after an oak tree that stood outside Gosling's office, also went by the name ‘Green’ and ended up later being renamed as Java, from a list of random words.Sun released the first public implementation as Java 1.0 in 1995. It promised Write Once, Run Anywhere (WORA), providing no-cost run-times on popular platforms. On 13 November,2006, Sun released much of Java as free and open source software under the terms of the GNU General Public License (GPL).On 8 May,2007, Sun finished the process, making all of Java's core code free and open-source, aside from a small portion of code to which Sun did not hold the copyright. Tools We Will Need • Personal Computer • Linux 7.1 or Windows xp/7/8 operating system • Java JDK 8 • IntelIJ, NetBeens etc. Java – Basic Syntax About Java programs, it is very important to keep in mind the following points. • Class Names • Case Sensitivity -HelloWorld • Method Names –public void helloWorld() • Program File Name • public static void main(String args[]) Java Modifiers
  • 2. • Access Modifiers- default, public, private, protected. • Non-Access Modifiers- final, abstract. Java KeyWord The flowing list show The reserved word in java. • Class, public, void, String, int, char, byte, assert, Boolean, break, • Case, catch, if, else ctc. Comments In Java Java Supports Single line and multi-line comments. • Multi-line comment – example /* */ • Single-line Comments –example // Java Object and Classes Java is an Object-Oriented Language. Java Support Object Oriented feature. • Objects • Class • Abstraction • Method • Inheritance • Polymorphism • Etc. Objects - Software objects also have a state and a behavior. A software object's state is stored in fields and behavior is shown via methods .So in software development, methods operate on the internal state of an object and the object-to-object communication is done via methods Classes- A class is a blue print from which individual objects are created. Example :- public class Calc{ Public void add(){ Int a = 2 + 2; System.out.println(a); } Public void subs(){
  • 3. Int a = 2 - 2; System.out.println(a); } Public void multi(){ Int a = 2 * 2; System.out.println(a); } Public void divi(){ Int a = 2 / 2; System.out.println(a); } } Constructors When discussing about classes, one of the most important sub topic would be constructors. Every class has a constructor. If we do not explicitly write a constructor for a class , the Java compiler builds a default constructor for that class. Creating Objects • Declaration – Hello obj; • Instantiation – new keywork; • Initialization –new keyword with call constructor. What is Next? In the next section, we will be discussing about Basic Operators used in Java Language. The chapter will give you an overview of how these operators can be used during application development.