SlideShare a Scribd company logo
INTRODUCTION TO JAVA
• INTRODUCTION
• ABOUT JAVA
• SIMPLE JAVA PROGRAM (HELLO WORLD)
• BLUEJ – A QUICK INTRODUCTION
• THE METHOD MAIN()
Introduction of
JAVA
About JAVA
History
Bytecode
About JAVA
Java is both a programming language and a platform.
Like any other programming language. We can use
JAVA to write or create various types of computer
applications. Thus, JAVA fits the definition of a
programming language.
JAVA is also a platform for application development.
The word platform generally is used to refer to some
combination of hardware and system software e.g.,
operating system Windows 10 on Intel Core i7 or
Windows 10 on DEC Alphas or MacOS 13.2 on
PowerMacs etc. The JAVA platform is a software
platform designed to deliver and run highly interactive,
dynamic and secure applications on networked
computer systems.
History of JAVA
1991
James Gosling Develops Oak (later renamed Java) language for programming
intelligent consumer electronic devices.
1993 World Wide Web explodes.
1995 Java formally announced. Incorporated into Netscape web browser.
1997 JDK 1.1 launched. Java Servlet API released.
1998
Sun introduces Community Source “open” licensing. Sun produces a JDK 1.2 for
Linux.
1999-2001 JDK 1.3 released.
2002 Web Services Developer Pack launched.
2004 JAVA 2 platform launched
2005
Java technologies celebrates its 10th birthday; Approximately 4.5 million
developers use Java technology; Over 2.5 billion Java technology-enabled devices
are available.
2006 The NetBeans IDE 5.0 released.
2007-2009 The NetBeans IDE is developers.com’s 2007 to 2009 Product of the Year.
2010 Oracle acquires Sun Microsystems.
2013
Java resurges with major improvements – major updates, lambdas, streams,
method references, defender methods, new HTTP clients etc.
2017-2018 Released updates of latest Java versions Java SE 8 and Java SE 9
2020-2021 JDK 16.4 launched for all operating systems.
History of JAVA continued…
Understanding
Bytecode
After the programmer has written the program, the program-
code (the source-code) must be converted into machine-
understandable executable code (object-code/Native
executable code), so that computer can understand and run
the code. This is done by compiler for different
programming languages.
For a different platform, we need to change the compiler
and sometimes the code too. But for applications developed
with Java, this is not the case.
Java applications are compiled once only and Java
compiler does not produce object-code, rather it produces
bytecode. The bytecode makes the Java applications
platform-independent.
Simple JAVA
Program
//Program for print Hello World
class HelloWorld{
public void sayhello(){
System.out.print(“Hello World”);
}
} //class definition ends here
Bluej is a Java development environment specially designed for
teaching at an introductory level.
Bluej is basically an IDE. It includes the following tools in it:
1. An editor, which we can use to write our program.
2. A debugger, which help us to find our mistakes.
3. A viewer, which let us see parts of our program graphically.
Bluej Quick Reference
The Method main()
In a Java stand-alone program, the execution begins from main().
Therefore, to execute any other method, we need to execute it
through main(). A program having main() method can be executed
by selecting void main(String[] args) from the class’s menu that
appears when we right click on the class icon (in Bluej).
Thank You!
WWW.AOE.EDUCATION
SAURABH@AOE.EDUCATION

More Related Content

What's hot

Java presentation
Java presentationJava presentation
Java presentation
surajdmk
 
What is java
What is javaWhat is java
Ruby in mule
Ruby in muleRuby in mule
Ruby in mule
Ramakrishna kapa
 
Core java environment setup and details
Core java environment setup and detailsCore java environment setup and details
Core java environment setup and details
e-visionlabs
 
JAVA Career
JAVA CareerJAVA Career
JAVA Career
JAVAjobsindia
 
Java Intro
Java IntroJava Intro
Java Intro
Nazmul Hasan Rupok
 
02 java programming features of java i
02 java programming features of java  i02 java programming features of java  i
02 java programming features of java i
Ravi Patki
 
Corejava
Corejava Corejava
Corejava
Harshit Sachdeva
 
Core Java
Core JavaCore Java
Core Java
NA
 
Java Presentation
Java PresentationJava Presentation
Java Presentationpm2214
 
JRE , JDK and platform independent nature of JAVA
JRE , JDK and platform independent nature of JAVAJRE , JDK and platform independent nature of JAVA
JRE , JDK and platform independent nature of JAVA
Mehak Tawakley
 
Presentation on Core java
Presentation on Core javaPresentation on Core java
Presentation on Core java
mahir jain
 
Learn Java Part 1
Learn Java Part 1Learn Java Part 1
Learn Java Part 1
Gurpreet singh
 
Java vs .net (beginners)
Java vs .net (beginners)Java vs .net (beginners)
Java vs .net (beginners)
Ravi Vishwakarma
 
JAVA ENVIRONMENT
JAVA  ENVIRONMENTJAVA  ENVIRONMENT
JAVA ENVIRONMENT
josemachoco
 
Training on Core java | PPT Presentation | Shravan Sanidhya
Training on Core java | PPT Presentation | Shravan SanidhyaTraining on Core java | PPT Presentation | Shravan Sanidhya
Training on Core java | PPT Presentation | Shravan Sanidhya
Shravan Sanidhya
 
Java 1
Java 1Java 1
Important features of java
Important features of javaImportant features of java
Important features of java
AL- AMIN
 
Presentación rs232 java
Presentación rs232 javaPresentación rs232 java
Presentación rs232 javaJohn Rojas
 

What's hot (20)

Java presentation
Java presentationJava presentation
Java presentation
 
What is java
What is javaWhat is java
What is java
 
Ruby in mule
Ruby in muleRuby in mule
Ruby in mule
 
Core java environment setup and details
Core java environment setup and detailsCore java environment setup and details
Core java environment setup and details
 
JAVA Career
JAVA CareerJAVA Career
JAVA Career
 
Java Intro
Java IntroJava Intro
Java Intro
 
02 java programming features of java i
02 java programming features of java  i02 java programming features of java  i
02 java programming features of java i
 
Corejava
Corejava Corejava
Corejava
 
Core Java
Core JavaCore Java
Core Java
 
Java features
Java featuresJava features
Java features
 
Java Presentation
Java PresentationJava Presentation
Java Presentation
 
JRE , JDK and platform independent nature of JAVA
JRE , JDK and platform independent nature of JAVAJRE , JDK and platform independent nature of JAVA
JRE , JDK and platform independent nature of JAVA
 
Presentation on Core java
Presentation on Core javaPresentation on Core java
Presentation on Core java
 
Learn Java Part 1
Learn Java Part 1Learn Java Part 1
Learn Java Part 1
 
Java vs .net (beginners)
Java vs .net (beginners)Java vs .net (beginners)
Java vs .net (beginners)
 
JAVA ENVIRONMENT
JAVA  ENVIRONMENTJAVA  ENVIRONMENT
JAVA ENVIRONMENT
 
Training on Core java | PPT Presentation | Shravan Sanidhya
Training on Core java | PPT Presentation | Shravan SanidhyaTraining on Core java | PPT Presentation | Shravan Sanidhya
Training on Core java | PPT Presentation | Shravan Sanidhya
 
Java 1
Java 1Java 1
Java 1
 
Important features of java
Important features of javaImportant features of java
Important features of java
 
Presentación rs232 java
Presentación rs232 javaPresentación rs232 java
Presentación rs232 java
 

Similar to BlueJ Two

J2ee strutswithhibernate-140121221332-phpapp01
J2ee strutswithhibernate-140121221332-phpapp01J2ee strutswithhibernate-140121221332-phpapp01
J2ee strutswithhibernate-140121221332-phpapp01
Jay Palit
 
Java & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate FrameworkJava & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate Framework
Mohit Belwal
 
Java presentation
Java presentationJava presentation
Java presentation
Karan Sareen
 
Java Programming (M&M)
Java Programming (M&M)Java Programming (M&M)
Java Programming (M&M)
mafffffe19
 
Java Presentation
Java PresentationJava Presentation
Java Presentation
SMNajrulHowlader
 
Core Java Slides
Core Java SlidesCore Java Slides
Core Java Slides
Vinit Vyas
 
Java presentation
Java presentationJava presentation
Java presentationsurajdmk
 
Dr. Rajeshree Khande :Intoduction to java
Dr. Rajeshree Khande :Intoduction to javaDr. Rajeshree Khande :Intoduction to java
Dr. Rajeshree Khande :Intoduction to java
DrRajeshreeKhande
 
Intoduction to java
Intoduction to javaIntoduction to java
Intoduction to java
jalinder123
 
java introduction.docx
java introduction.docxjava introduction.docx
java introduction.docx
vikasbagra9887
 
Java
JavaJava
Features of java unit 1
Features of java unit 1Features of java unit 1
Features of java unit 1
RubaNagarajan
 
JAVA First Day
JAVA First DayJAVA First Day
JAVA First Day
Sher Singh Bardhan
 
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Pratima Parida
 
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Pratima Parida
 
Chapter 1 introduction to java technology
Chapter 1 introduction to java technologyChapter 1 introduction to java technology
Chapter 1 introduction to java technologysshhzap
 
Core Java-1 (1).pdf
Core Java-1 (1).pdfCore Java-1 (1).pdf
Core Java-1 (1).pdf
HaskellKohler1234
 
Java Lecture 1
Java Lecture 1Java Lecture 1
Java Lecture 1
Qualys
 
Unit1 JAVA.pptx
Unit1 JAVA.pptxUnit1 JAVA.pptx
Unit1 JAVA.pptx
RahulAnand111531
 

Similar to BlueJ Two (20)

J2ee strutswithhibernate-140121221332-phpapp01
J2ee strutswithhibernate-140121221332-phpapp01J2ee strutswithhibernate-140121221332-phpapp01
J2ee strutswithhibernate-140121221332-phpapp01
 
Java & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate FrameworkJava & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate Framework
 
Java presentation
Java presentationJava presentation
Java presentation
 
Java Programming (M&M)
Java Programming (M&M)Java Programming (M&M)
Java Programming (M&M)
 
Java Presentation
Java PresentationJava Presentation
Java Presentation
 
Core Java Slides
Core Java SlidesCore Java Slides
Core Java Slides
 
Core java slides
Core java slidesCore java slides
Core java slides
 
Java presentation
Java presentationJava presentation
Java presentation
 
Dr. Rajeshree Khande :Intoduction to java
Dr. Rajeshree Khande :Intoduction to javaDr. Rajeshree Khande :Intoduction to java
Dr. Rajeshree Khande :Intoduction to java
 
Intoduction to java
Intoduction to javaIntoduction to java
Intoduction to java
 
java introduction.docx
java introduction.docxjava introduction.docx
java introduction.docx
 
Java
JavaJava
Java
 
Features of java unit 1
Features of java unit 1Features of java unit 1
Features of java unit 1
 
JAVA First Day
JAVA First DayJAVA First Day
JAVA First Day
 
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)
 
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)
 
Chapter 1 introduction to java technology
Chapter 1 introduction to java technologyChapter 1 introduction to java technology
Chapter 1 introduction to java technology
 
Core Java-1 (1).pdf
Core Java-1 (1).pdfCore Java-1 (1).pdf
Core Java-1 (1).pdf
 
Java Lecture 1
Java Lecture 1Java Lecture 1
Java Lecture 1
 
Unit1 JAVA.pptx
Unit1 JAVA.pptxUnit1 JAVA.pptx
Unit1 JAVA.pptx
 

More from Saurabh Bhartiya

Mq 4 sensor
Mq 4 sensorMq 4 sensor
Mq 4 sensor
Saurabh Bhartiya
 
Dc motor & wheel with l298 n motor driver
Dc motor & wheel with l298 n motor driverDc motor & wheel with l298 n motor driver
Dc motor & wheel with l298 n motor driver
Saurabh Bhartiya
 
Jdbc drivers
Jdbc driversJdbc drivers
Jdbc drivers
Saurabh Bhartiya
 
4 wheel base
4 wheel base4 wheel base
4 wheel base
Saurabh Bhartiya
 
3 wheel base
3 wheel base3 wheel base
3 wheel base
Saurabh Bhartiya
 
Introduction to design thinking
Introduction to design thinkingIntroduction to design thinking
Introduction to design thinking
Saurabh Bhartiya
 
Bluej
BluejBluej
Annual report updated into 82
Annual report updated into 82Annual report updated into 82
Annual report updated into 82
Saurabh Bhartiya
 
Curriculam Vitae
Curriculam VitaeCurriculam Vitae
Curriculam Vitae
Saurabh Bhartiya
 

More from Saurabh Bhartiya (9)

Mq 4 sensor
Mq 4 sensorMq 4 sensor
Mq 4 sensor
 
Dc motor & wheel with l298 n motor driver
Dc motor & wheel with l298 n motor driverDc motor & wheel with l298 n motor driver
Dc motor & wheel with l298 n motor driver
 
Jdbc drivers
Jdbc driversJdbc drivers
Jdbc drivers
 
4 wheel base
4 wheel base4 wheel base
4 wheel base
 
3 wheel base
3 wheel base3 wheel base
3 wheel base
 
Introduction to design thinking
Introduction to design thinkingIntroduction to design thinking
Introduction to design thinking
 
Bluej
BluejBluej
Bluej
 
Annual report updated into 82
Annual report updated into 82Annual report updated into 82
Annual report updated into 82
 
Curriculam Vitae
Curriculam VitaeCurriculam Vitae
Curriculam Vitae
 

Recently uploaded

BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 

Recently uploaded (20)

BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 

BlueJ Two

  • 1. INTRODUCTION TO JAVA • INTRODUCTION • ABOUT JAVA • SIMPLE JAVA PROGRAM (HELLO WORLD) • BLUEJ – A QUICK INTRODUCTION • THE METHOD MAIN()
  • 3. About JAVA Java is both a programming language and a platform. Like any other programming language. We can use JAVA to write or create various types of computer applications. Thus, JAVA fits the definition of a programming language. JAVA is also a platform for application development. The word platform generally is used to refer to some combination of hardware and system software e.g., operating system Windows 10 on Intel Core i7 or Windows 10 on DEC Alphas or MacOS 13.2 on PowerMacs etc. The JAVA platform is a software platform designed to deliver and run highly interactive, dynamic and secure applications on networked computer systems.
  • 4. History of JAVA 1991 James Gosling Develops Oak (later renamed Java) language for programming intelligent consumer electronic devices. 1993 World Wide Web explodes. 1995 Java formally announced. Incorporated into Netscape web browser. 1997 JDK 1.1 launched. Java Servlet API released. 1998 Sun introduces Community Source “open” licensing. Sun produces a JDK 1.2 for Linux. 1999-2001 JDK 1.3 released. 2002 Web Services Developer Pack launched. 2004 JAVA 2 platform launched 2005 Java technologies celebrates its 10th birthday; Approximately 4.5 million developers use Java technology; Over 2.5 billion Java technology-enabled devices are available. 2006 The NetBeans IDE 5.0 released. 2007-2009 The NetBeans IDE is developers.com’s 2007 to 2009 Product of the Year. 2010 Oracle acquires Sun Microsystems.
  • 5. 2013 Java resurges with major improvements – major updates, lambdas, streams, method references, defender methods, new HTTP clients etc. 2017-2018 Released updates of latest Java versions Java SE 8 and Java SE 9 2020-2021 JDK 16.4 launched for all operating systems. History of JAVA continued…
  • 6. Understanding Bytecode After the programmer has written the program, the program- code (the source-code) must be converted into machine- understandable executable code (object-code/Native executable code), so that computer can understand and run the code. This is done by compiler for different programming languages. For a different platform, we need to change the compiler and sometimes the code too. But for applications developed with Java, this is not the case. Java applications are compiled once only and Java compiler does not produce object-code, rather it produces bytecode. The bytecode makes the Java applications platform-independent.
  • 7. Simple JAVA Program //Program for print Hello World class HelloWorld{ public void sayhello(){ System.out.print(“Hello World”); } } //class definition ends here
  • 8. Bluej is a Java development environment specially designed for teaching at an introductory level. Bluej is basically an IDE. It includes the following tools in it: 1. An editor, which we can use to write our program. 2. A debugger, which help us to find our mistakes. 3. A viewer, which let us see parts of our program graphically. Bluej Quick Reference
  • 9. The Method main() In a Java stand-alone program, the execution begins from main(). Therefore, to execute any other method, we need to execute it through main(). A program having main() method can be executed by selecting void main(String[] args) from the class’s menu that appears when we right click on the class icon (in Bluej).