SlideShare a Scribd company logo
BASICS OF JAVA 
BY: PALASH SL GUPTA
INDEX 
• INTRODUCTION 
• HISTORY 
• BENEFITS OF JAVA 
• SHORTCOMINGS OF JAVA 
• JAVA IN ACTION 
• GENERAL PROGRAMS 
• USE OF JAVA IN MODERN LIFE 
• END OF PRESENTATION
INTRODUCTION 
• Java is a third generation high level 
programming language 
• It is simple 
• Easy to use 
• Familiar 
• secure 
• And many more
HISTORY OF JAVA 
• In 1991 Sun Microsystems under the 
leadership of James Gosling formed a 
programming language called “OAK” 
• In 1995 Sun changed the name “OAK” to the 
well known “JAVA” 
• The official logo of java (a coffee cup) was 
came to existence at a coffee shop near Sun 
Microsystems
HISTORY OF JAVA 
• In 1995 Sun released the first public 
implementation as java 1.0 
• On November-13-2006 Sun made java as an 
open source 
• On May-08-2008 Sun finished the process of 
making java’s core code
BENEFITS OF JAVA 
• Platform –Independent and Portable 
• Object –Oriented 
• Robust and Secure 
• Distributed 
• Simple, Small and Familiar 
• Multithreaded and Interactive 
• Scalability and Performance
OBJECT ORIENTED PROGRAMMING OOPS 
• Emphasis on data rather than procedure 
• Programs are divide into objects 
• Provides security 
• Multiple objects can be created that already 
coexists 
• New data and Functions can easily be created 
anywhere in program
BASIC CONCEPT OF OOPS 
• Objects 
• Classes 
• Data Abstraction and Encapsulation 
• Inheritance 
• Polymorphism 
• Dynamic Binding
SHORTCOMINGS OF JAVA 
• Running Bytecode through interpreter is not 
as fast as running machine code which is 
specific to that program 
• Because it is Platform Independent it is 
difficult to use platform specific features (e.g. 
windows taskbar, quick launch) in java 
• Java interpreter must be installed on your 
computer in order to run java programs
JAVA IN ACTION 
• Generally java programs can be compiled in 
two ways 
I. By using Eclipse(java compiler) 
II. Or by command prompt 
•. Generally Eclipse is used most
GENERAL PROGRAMS 
• General java program for hello 
class Hello 
{ 
public static void main(String args[]) 
{ 
System.out.println(“Hello”); 
} 
}
GENERAL PROGRAMS 
• Program using for loop 
class Hello 
{ 
public static void main(String args[]) 
{ 
int i; 
for(i=1;i<=10;i++) 
System.out.println(“hello”); 
} 
}
GENERAL PROGRAMS 
• Program using if-else condition 
Class Large 
{ 
public static void main(String args[]) 
{ 
int a=5,b=7 
if(a>b) 
System.out.println(“a is large no”); 
else 
System.out.println(“b is large no”); 
} 
}
USE OF JAVA IN MODERN LIFE 
• It is used as an operating systems in basic 
mobiles 
• It used in Web Developing and Designing 
• It is used in Networking 
• It is used in GUI 
• It is used in designing games 
• Etc.
THANKS 
ANY QUESTIONS ??????

More Related Content

What's hot

Java Basics
Java BasicsJava Basics
Java Basics
Fahad Shahzad
 
1 java introduction
1 java introduction1 java introduction
1 java introduction
abdullah al mahamud rosi
 
Java History
Java HistoryJava History
Java History
Prionto Abdullah
 
Chapter 1 java
Chapter 1 java Chapter 1 java
Chapter 1 java
Ahmad sohail Kakar
 
History of Java 1/2
History of Java 1/2History of Java 1/2
History of Java 1/2
Eberhard Wolff
 
The Evolution of Java
The Evolution of JavaThe Evolution of Java
The Evolution of Java
Fu Cheng
 
Introduction of java technology
Introduction of java technologyIntroduction of java technology
Introduction of java technology
technologieslara
 
Java
JavaJava
Basic javaprogramming(session1)
Basic javaprogramming(session1)Basic javaprogramming(session1)
Basic javaprogramming(session1)Barm Bannasan
 
Lara Technology
Lara TechnologyLara Technology
Lara Technology
laratechnologies
 
Let's server your Data
Let's server your DataLet's server your Data
Let's server your Data
Frank van der Linden
 
Lara technologies
Lara technologiesLara technologies
Lara technologies
technologieslara
 
Learn Java Part 1
Learn Java Part 1Learn Java Part 1
Learn Java Part 1
Gurpreet singh
 
Java Presentation
 Java Presentation Java Presentation
Java Presentation
Marq2014
 
JAVA FEATURES
JAVA FEATURESJAVA FEATURES
JAVA FEATURES
shalinikarunakaran1
 
Evolution of java By Abbas khan
Evolution of java   By Abbas khan Evolution of java   By Abbas khan
Evolution of java By Abbas khan
Tatireddy Rajeevreddy
 
Jvm mbeans jmxtran
Jvm mbeans jmxtranJvm mbeans jmxtran
Jvm mbeans jmxtran
adm_exoplatform
 

What's hot (20)

Java Basics
Java BasicsJava Basics
Java Basics
 
1 java introduction
1 java introduction1 java introduction
1 java introduction
 
Java History
Java HistoryJava History
Java History
 
Chapter 1 java
Chapter 1 java Chapter 1 java
Chapter 1 java
 
History of Java 1/2
History of Java 1/2History of Java 1/2
History of Java 1/2
 
Javafx
JavafxJavafx
Javafx
 
The Evolution of Java
The Evolution of JavaThe Evolution of Java
The Evolution of Java
 
Introduction of java technology
Introduction of java technologyIntroduction of java technology
Introduction of java technology
 
Java
JavaJava
Java
 
Apache
ApacheApache
Apache
 
Basic javaprogramming(session1)
Basic javaprogramming(session1)Basic javaprogramming(session1)
Basic javaprogramming(session1)
 
Lara Technology
Lara TechnologyLara Technology
Lara Technology
 
Let's server your Data
Let's server your DataLet's server your Data
Let's server your Data
 
Lara technologies
Lara technologiesLara technologies
Lara technologies
 
Features of java
Features of javaFeatures of java
Features of java
 
Learn Java Part 1
Learn Java Part 1Learn Java Part 1
Learn Java Part 1
 
Java Presentation
 Java Presentation Java Presentation
Java Presentation
 
JAVA FEATURES
JAVA FEATURESJAVA FEATURES
JAVA FEATURES
 
Evolution of java By Abbas khan
Evolution of java   By Abbas khan Evolution of java   By Abbas khan
Evolution of java By Abbas khan
 
Jvm mbeans jmxtran
Jvm mbeans jmxtranJvm mbeans jmxtran
Jvm mbeans jmxtran
 

Viewers also liked

Programming with Java: the Basics
Programming with Java: the BasicsProgramming with Java: the Basics
Programming with Java: the BasicsJussi Pohjolainen
 
Introduction to basics of java
Introduction to basics of javaIntroduction to basics of java
Introduction to basics of java
vinay arora
 
Java Basics
Java BasicsJava Basics
Java Basics
Brandon Black
 
Java basics notes
Java basics notesJava basics notes
Java basics notes
poonguzhali1826
 
Java Basics
Java BasicsJava Basics
Java Basics
Rajkattamuri
 
Java Course 3: OOP
Java Course 3: OOPJava Course 3: OOP
Java Course 3: OOP
Anton Keks
 
Basics of java 2
Basics of java 2Basics of java 2
Basics of java 2Raghu nath
 
Java Course 2: Basics
Java Course 2: BasicsJava Course 2: Basics
Java Course 2: Basics
Anton Keks
 
Java Programming for Designers
Java Programming for DesignersJava Programming for Designers
Java Programming for Designers
R. Sosa
 
Basics of file handling
Basics of file handlingBasics of file handling
Basics of file handlingpinkpreet_kaur
 
2. Basics of Java
2. Basics of Java2. Basics of Java
2. Basics of Java
Nilesh Dalvi
 
Core java Basics
Core java BasicsCore java Basics
Core java Basics
RAMU KOLLI
 
Java basics
Java basicsJava basics
Java basics
Hoang Nguyen
 
Core Java Basics
Core Java BasicsCore Java Basics
Core Java Basics
mhtspvtltd
 
OOPs in Java
OOPs in JavaOOPs in Java
OOPs in Java
Ranjith Sekar
 
Java Basics
Java BasicsJava Basics
Java Basics
sunilsahu07
 
Java basics part 1
Java basics part 1Java basics part 1
Java basics part 1
Kevin Rowan
 
Java Basics
Java BasicsJava Basics
Java Basics
Rkrishna Mishra
 
Ppt on java basics
Ppt on java basicsPpt on java basics
Ppt on java basics
Mavoori Soshmitha
 

Viewers also liked (20)

Programming with Java: the Basics
Programming with Java: the BasicsProgramming with Java: the Basics
Programming with Java: the Basics
 
Introduction to basics of java
Introduction to basics of javaIntroduction to basics of java
Introduction to basics of java
 
Java Basics
Java BasicsJava Basics
Java Basics
 
Java basics notes
Java basics notesJava basics notes
Java basics notes
 
Java Basics
Java BasicsJava Basics
Java Basics
 
Java Course 3: OOP
Java Course 3: OOPJava Course 3: OOP
Java Course 3: OOP
 
Basics of java 2
Basics of java 2Basics of java 2
Basics of java 2
 
Java Course 2: Basics
Java Course 2: BasicsJava Course 2: Basics
Java Course 2: Basics
 
Java Programming for Designers
Java Programming for DesignersJava Programming for Designers
Java Programming for Designers
 
Java basics
Java basicsJava basics
Java basics
 
Basics of file handling
Basics of file handlingBasics of file handling
Basics of file handling
 
2. Basics of Java
2. Basics of Java2. Basics of Java
2. Basics of Java
 
Core java Basics
Core java BasicsCore java Basics
Core java Basics
 
Java basics
Java basicsJava basics
Java basics
 
Core Java Basics
Core Java BasicsCore Java Basics
Core Java Basics
 
OOPs in Java
OOPs in JavaOOPs in Java
OOPs in Java
 
Java Basics
Java BasicsJava Basics
Java Basics
 
Java basics part 1
Java basics part 1Java basics part 1
Java basics part 1
 
Java Basics
Java BasicsJava Basics
Java Basics
 
Ppt on java basics
Ppt on java basicsPpt on java basics
Ppt on java basics
 

Similar to PALASH SL GUPTA

Introduction to Core Java feature and its characteristics
Introduction to Core Java feature and its characteristicsIntroduction to Core Java feature and its characteristics
Introduction to Core Java feature and its characteristics
rashmishekhar81
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
Soumya Suman
 
PPT 3.pptx For Java.....................
PPT 3.pptx For Java.....................PPT 3.pptx For Java.....................
PPT 3.pptx For Java.....................
ayushjaiswal9494
 
Introduction to Java Programming
Introduction to Java ProgrammingIntroduction to Java Programming
Introduction to Java Programming
Ravi Kant Sahu
 
Trends and future of java
Trends and future of javaTrends and future of java
Trends and future of java
Csaba Toth
 
L1 basics
L1 basicsL1 basics
L1 basics
teach4uin
 
Java fundamentals
Java fundamentalsJava fundamentals
Java fundamentals
Om Ganesh
 
1.Intro--Why Java.pptx
1.Intro--Why Java.pptx1.Intro--Why Java.pptx
1.Intro--Why Java.pptx
YounasKhan542109
 
Introduction To JAVA.pptx
Introduction To JAVA.pptxIntroduction To JAVA.pptx
Introduction To JAVA.pptx
MahalCenteno
 
Java unit1 a- History of Java to string
Java unit1 a- History of Java to stringJava unit1 a- History of Java to string
Java unit1 a- History of Java to string
SivaSankari36
 
Chapter-1 Introduction.pptx
Chapter-1 Introduction.pptxChapter-1 Introduction.pptx
Chapter-1 Introduction.pptx
SumanBhandari40
 
Java Introduction
Java IntroductionJava Introduction
Java Introduction
sunmitraeducation
 
Java1
Java1Java1
Java1
Java1Java1
Introduction to java
Introduction to javaIntroduction to java
Introduction to javaattiqrocket
 
21110113913.pptxElectricity is a type of
21110113913.pptxElectricity is a type of21110113913.pptxElectricity is a type of
21110113913.pptxElectricity is a type of
pandeyritik310
 
Java Programming concept
Java Programming concept Java Programming concept
Java Programming concept
Prakash Poudel
 

Similar to PALASH SL GUPTA (20)

Introduction to Core Java feature and its characteristics
Introduction to Core Java feature and its characteristicsIntroduction to Core Java feature and its characteristics
Introduction to Core Java feature and its characteristics
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
 
PPT 3.pptx For Java.....................
PPT 3.pptx For Java.....................PPT 3.pptx For Java.....................
PPT 3.pptx For Java.....................
 
Introduction to Java Programming
Introduction to Java ProgrammingIntroduction to Java Programming
Introduction to Java Programming
 
Trends and future of java
Trends and future of javaTrends and future of java
Trends and future of java
 
L1 basics
L1 basicsL1 basics
L1 basics
 
Java fundamentals
Java fundamentalsJava fundamentals
Java fundamentals
 
1.Intro--Why Java.pptx
1.Intro--Why Java.pptx1.Intro--Why Java.pptx
1.Intro--Why Java.pptx
 
Introduction To JAVA.pptx
Introduction To JAVA.pptxIntroduction To JAVA.pptx
Introduction To JAVA.pptx
 
Java unit1 a- History of Java to string
Java unit1 a- History of Java to stringJava unit1 a- History of Java to string
Java unit1 a- History of Java to string
 
Chapter-1 Introduction.pptx
Chapter-1 Introduction.pptxChapter-1 Introduction.pptx
Chapter-1 Introduction.pptx
 
Java Introduction
Java IntroductionJava Introduction
Java Introduction
 
Java1
Java1Java1
Java1
 
Java1
Java1Java1
Java1
 
Lesson1 intro
Lesson1 introLesson1 intro
Lesson1 intro
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
Lesson1 intro
Lesson1 introLesson1 intro
Lesson1 intro
 
Introduction to java technology
Introduction to java technologyIntroduction to java technology
Introduction to java technology
 
21110113913.pptxElectricity is a type of
21110113913.pptxElectricity is a type of21110113913.pptxElectricity is a type of
21110113913.pptxElectricity is a type of
 
Java Programming concept
Java Programming concept Java Programming concept
Java Programming concept
 

Recently uploaded

Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Łukasz Chruściel
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Neo4j
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
lorraineandreiamcidl
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
TheSMSPoint
 
APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)
Boni García
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
Fermin Galan
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
Octavian Nadolu
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
Paco van Beckhoven
 
Hand Rolled Applicative User Validation Code Kata
Hand Rolled Applicative User ValidationCode KataHand Rolled Applicative User ValidationCode Kata
Hand Rolled Applicative User Validation Code Kata
Philip Schwarz
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
Drona Infotech
 
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
Google
 
Launch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in MinutesLaunch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in Minutes
Roshan Dwivedi
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
Łukasz Chruściel
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
Max Andersen
 
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Mind IT Systems
 
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Crescat
 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
Aftab Hussain
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
Aftab Hussain
 

Recently uploaded (20)

Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
 
APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
 
Hand Rolled Applicative User Validation Code Kata
Hand Rolled Applicative User ValidationCode KataHand Rolled Applicative User ValidationCode Kata
Hand Rolled Applicative User Validation Code Kata
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
 
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
 
Launch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in MinutesLaunch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in Minutes
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
 
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
 
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
 

PALASH SL GUPTA

  • 1. BASICS OF JAVA BY: PALASH SL GUPTA
  • 2. INDEX • INTRODUCTION • HISTORY • BENEFITS OF JAVA • SHORTCOMINGS OF JAVA • JAVA IN ACTION • GENERAL PROGRAMS • USE OF JAVA IN MODERN LIFE • END OF PRESENTATION
  • 3. INTRODUCTION • Java is a third generation high level programming language • It is simple • Easy to use • Familiar • secure • And many more
  • 4. HISTORY OF JAVA • In 1991 Sun Microsystems under the leadership of James Gosling formed a programming language called “OAK” • In 1995 Sun changed the name “OAK” to the well known “JAVA” • The official logo of java (a coffee cup) was came to existence at a coffee shop near Sun Microsystems
  • 5. HISTORY OF JAVA • In 1995 Sun released the first public implementation as java 1.0 • On November-13-2006 Sun made java as an open source • On May-08-2008 Sun finished the process of making java’s core code
  • 6. BENEFITS OF JAVA • Platform –Independent and Portable • Object –Oriented • Robust and Secure • Distributed • Simple, Small and Familiar • Multithreaded and Interactive • Scalability and Performance
  • 7. OBJECT ORIENTED PROGRAMMING OOPS • Emphasis on data rather than procedure • Programs are divide into objects • Provides security • Multiple objects can be created that already coexists • New data and Functions can easily be created anywhere in program
  • 8. BASIC CONCEPT OF OOPS • Objects • Classes • Data Abstraction and Encapsulation • Inheritance • Polymorphism • Dynamic Binding
  • 9. SHORTCOMINGS OF JAVA • Running Bytecode through interpreter is not as fast as running machine code which is specific to that program • Because it is Platform Independent it is difficult to use platform specific features (e.g. windows taskbar, quick launch) in java • Java interpreter must be installed on your computer in order to run java programs
  • 10. JAVA IN ACTION • Generally java programs can be compiled in two ways I. By using Eclipse(java compiler) II. Or by command prompt •. Generally Eclipse is used most
  • 11. GENERAL PROGRAMS • General java program for hello class Hello { public static void main(String args[]) { System.out.println(“Hello”); } }
  • 12. GENERAL PROGRAMS • Program using for loop class Hello { public static void main(String args[]) { int i; for(i=1;i<=10;i++) System.out.println(“hello”); } }
  • 13. GENERAL PROGRAMS • Program using if-else condition Class Large { public static void main(String args[]) { int a=5,b=7 if(a>b) System.out.println(“a is large no”); else System.out.println(“b is large no”); } }
  • 14.
  • 15.
  • 16.
  • 17. USE OF JAVA IN MODERN LIFE • It is used as an operating systems in basic mobiles • It used in Web Developing and Designing • It is used in Networking • It is used in GUI • It is used in designing games • Etc.