SlideShare a Scribd company logo
1. Java Tutorial – Objective
In this Java tutorial, we are going to learn about java evolution,
development of Java language, java features, Java frameworks, and Java
support systems. Java tutorial covers various development tools, classes in
Java programming, and Java methods which comprises the Java
environment. This tutorial on java will help you get a quick insight into the
Java programming language and thus, help you learn java language.
Java Tutorial – java language
2. Introduction to Java Programming Language
Java Programming is a general-purpose object-oriented programming
language, designed for the development of software for consumer
electronic devices such as TVs, VCRs, toasters, etc.
Java is a platform neutral language, which means it is not tied to any
particular hardware or operating system. It guarantees users to ‘write once,
run anywhere’. Java language is supported by almost every operating
system such as Sun Solaris, RedHat, Windows etc.
Java Tutorial- Introduction to Java Language
Java programming language was developed by Sun Microsystems of the
USA in 1991, it was originally calledOak by James Gosling, who was one
of the inventors of the language. The main goal for the developers was to
make the language highly reliable,portable and simple.
The team for the development of Java language included Patrick
Naughton, who discovered that the existing languages such as C and C++
had some major drawbacks in terms of reliabilityand portability. They
modeled the new language Java on C and C++ while removing some
features which they considered as constraints. This made Java a really
simple, portable and powerful language. To learn java basics, let’s
revise Java syntax.
3. Java Tutorial – History of Java
There is a chronicle of events that occurred during the whole course of
development of the Java language.
 1990-A team of Sun Microsystems programmers decided to
develop a special software to manipulate consumer electronic
devices. The team headed by James Gosling
 1991-The team studied various languages present at that time, viz.,
C and C++ and announced the newlanguage to be “Oak”.
 1992-The team at Sun known as Green Project demonstrated the
applicationoftheirnew language. For example, to control a list of
home appliances usinga hand device with the tinytouchscreen.
 1993-The World Wide Web came to the internet and transformed
the text-based Internet into the graphical rich environment.The
Green Project team came up with an idea of developingWeb
applets (tinyprograms)that could run on all types of computers
connected to the internet.
 1994-The team developed a web browser called “HotJava” to locate
and run applet programs on the internet.This made it immensely
popularamongst the internet users.
 1995-Oak was renamed as “Java”, due to some legal snags. Java is a
name, no acronym.
 1996-Java programmingwas established as the leader for internet
programmingand also as a general-purpose object-oriented
programminglanguage.Sun releases Java Development Kit 1.0.
 1997-Sun releases Java Development Kit 1.1 (JDK 1.1)
 1998-Sun releases the Java 2 with version 1.2 of the Software
Development Kit (SD K 1.2)
 1999-Sun releases Java 2 platform, Standard Edition(J2SE) and
Enterprise Edition (J2EE)
 2000-Release ofJ2SE with SDK 1.3.
 2002-The release of J2SE with SDK 1.4.
 2004-The release of J2SE with JDK 5.0 (instead of JDK 1.5), known as
J2SE 5.0.
 2006- The release of Java SE 6.
 2011- The release of Java SE 7.
 2014- The release of Java SE 8.
 2017- The release of Java SE 9.
4. Features of Java Programming
Java Tutorial- Features of Java Programming Language
The main goal of the inventors was to design a language which could offer
solutions to the problems encountered in modern programming. The goal
being the language to be reliable,portable and distributed and at the same
time simple, compact and interactive.
a. Compiled and Interpreted
Java language combines both of these approaches thus making Java a two-
stage system. This approach was never offered before, as any language
before was either compiled or interpreted.
Firstly, Java compiler translates source code into bytecode instructions,
bytecodes are not machine instructions.
Secondly, Java interpreter generates machine code that can be directly
executed by the machine that is running the Java program.
b. Independent and Portable
Java programs can be easilymoved from one system to another, anywhere
and anytime. Changes or any upgrade in the operating system, processors
and system resources will not force any changes in Java programs.
Java programming ensures portability in two ways: firstly, Java compiler
generates bytecode instructions that can be implemented on any machine,
and secondly, the size of the primitive data types are machine independent.
c. Object-oriented
Almost everything in Java language is an object, which makes it a true
object-oriented language. All program code and data reside within objects
and classes.Java comes with an extensive set of classes, arranged in
packages, which are used in program inheritance.
d. Robust and Secure
Java language provides many safeguards to ensure reliable code. It has
strict run-time checking for data types. It is designed as a garbage
collected language, i.e., it captures series errors and eliminates any risk of
crashing the system.
Java systems verify all the memory access and thus ensures that no virus is
communicated with an applet.
e. Distributed
Java programming facilitates both, sharing of data and programs. Java
applications can open and access remote objects on Internet as easily as on
any local system.
f. Simple, Small and Familiar
Java is a simplified version of C++, which is why it is familiar and yet
different as it eliminates all the redundant and unreliable code. For
example, Java does not use pointers, preprocessor header files, and many
others. It also eliminates operator overloading and multiple inheritances in
Java.
g. Multithreaded and Interactive
Multithreaded means handling different tasks simultaneously. Java
language supports multithreaded programs, which means that we need not
have to wait for one task to finish for another to start. This feature of java
greatly improves the interactive performance of graphical applications.
h. High Performance
Java programming performance is very impressive considering the fact
that is an interpreted language, mainly because of the bytecodes. Java
architecture is designed to reduce overheads.
i. Dynamic and Extensible
Java is a dynamic language, it is capable of dynamically linking in new
class libraries,methods, and objects. It can also determine the type of class
through query.
j. Ease of Development
Java 2 standard edition (J2SE) 5.0 supports features such as Generics,
Enhanced for loop, Autoboxing or unboxing, Typesafe enums, varargs,
Static import and Annotation. These java features make it easy for the java
programmer by shifting the responsibilityof creating the reusable code to
the compiler, and also the resulting code is free from bugs.
k. Scalability and Performance
J2SE 5.0 improves the startup time and reducing the amount of memory
used in Java 2 runtime environment. Learn more features of Java.
5. Java Tutorial – C vs Java vs C++
Java Tutorial – C vs C++ vs JAVA
a. C vs Java
The major difference between C vs Java Programming language is that
Java is an Object Oriented language and has a mechanism to define classes
and objects in java. The features of C which are not included in Java are:
 No unique statement keywords of C size and typedef.
 No data types such as struct and union.
 Java does not define the type modifier keywords such as auto,
extern,register, signed and unsigned.
 No support forpointer type.
 Non-availabilityofpreprocessor
 Java requires that the function with no argument must be declared
with emptyparenthesis and with the void keyword.
 New Java operators such as instanceofand >>>.
 Java programminghas labeled breakand continue statements.
b. Java vs C++
The main difference between c++ vs Java is that Java is a true Object-
oriented language while C++ just adds an object-oriented extension to C.
The increment operator in C++ indicates the same thing.
The features listed below are intentionally omitted from Java language to
make it better.
 No support foroperatoroverloading.
 No template classes as in C++.
 A new feature called “interface” in Java programmingand thus not
supportingmultiple inheritances.
 Java language does not support global variables.
 Java uses a finalize () function instead ofthe destructorfunction.
 There are no header files in Java programming.
Let’s discuss Java Regular Expression and Java Array.
6. Java Tutorial – Java Language and the Internet
Java Tutorial – Java Language and Internet
Java is often called Internet language because the first application program
written in Java was HotJava, a Web browser to run applets on the Internet.
Internet users can use Java to create applets and run them locallyusing
HotJava. A Java-enabled browser to download an applet located anywhere
on the Internet can also be used.
Java applets have made the Internet a true extension of the storage system
on local computers. Internet users can also set up their websites containing
Java applets that could be used by remote users.
7. Java Tutorial – Java Programming and World Wide Web
Java Tutorial – Java Programming Language with WWW
World Wide Web (www) is an information retrieval system where any
information or file is identified as Uniform source Locators (URLs) and
are interlinked via hypertext links. WWW can be accessed with the help of
internet.
Internet and Java programming, both had the same philosophy and thus
they were incorporated with each other easily. Java made it possible for
the World Wide Web to support animation, graphics, games, and a wide
range of special effects.
To communicate with any web page, Java uses APPLETs. The steps
involved are –
1. The user requests fora hyperlinkdocument to remote computer’s
web server. (a web server receives, processes,and sends the
requested document)
2. The document contains the APPLET tag, which identifies the applet.
3. Java source code file compiles the bytecode for that applet,which is
then transferred to user’s computer.
4. The browser which is enabled byJava programmingthen interprets
the bytecode and provides the output.
8. Java Tutorial – Support Systems
The operations of Java language and Java-enabled browsers on the internet
requires a variety of support systems, namely,
 Internet Connection
 Web server
 Web Browser
 HTML- A language for creatinghypertext for the web.
 APPLET tag
 Java code
 Bytecode
 Proxy Server-an intermediate serverbetween the requestingclient
workstation and the original server.
 Mail Server
9. Java Tutorial – Java Environment
It includes a large number of java development tools and java classes and
methods.
The Java development tools are part of the system known as Java
Development Kit (JDK) and the classes and the methods in Java are a part
of the Java Standard Library (JSL), also known as the Application
Programming Interface (API).
a. Java Development Kit
Java Development Kit includes-
 appletviewer (forviewing Java applets)
 javac ( Java compiler)
 java ( Java interpreter )
 javap ( Java disassembler )
 javah ( for C header files)
 javadoc( for creating HTML files )
 jdb ( Java debugger )
b. Application Programming Interface
The Java Standard Library includes classes and packages, some most
commonly used packages are-
Language Support Package- A collection of Java classes and methods
required for implementing basic features of Java.
 UtilityPackage- To provide java utilityfunctions.
 Input/output Package-For java input/ outputmanipulation.
 Networking Package- For communicatingvia the internet.
 AWT Package- The abstract window toolkit package contains classes
that implement platform independent graphical user interface.
 Applet Package- It allows to create Java applets.
c. Java Runtime Environment
It facilitates the execution of Java programs, comprising-
Java Virtual Machine (JVM) – It interprets the intermediate Java bytecode
and generates the desired output.
 Runtime class libraries-These are a set of core Java class libraries
for execution of the java program.
 User interface toolkits-Used for interaction with the Java
applicationprogram.
 Deployment technologies
1)Java plugin- Enables the execution of a Java applet.
2) Java Web start- Enables an application to directly launch from the web
browser without installing. Learn more about Java Datatypes and Java
Modifiers.
10. Java Tutorial – Constructs
Constructs are basicallyreserved keywords in any language, which cannot
be used in rest of the programs, i.e., as name of variables in Java, class or
method. Java has around 50 such words,they are-
11. Conclusion
Finally, In this Java tutorial, we learned about the history of Java
programming language, java features, how java is different from C and
C++, how it is incorporated in World Wide Web with help of Web
browsers and the environment required for running Java applications.
Ad

More Related Content

What's hot (20)

Basics of java programming language
Basics of java programming languageBasics of java programming language
Basics of java programming language
masud33bd
 
Java unit 1
Java unit 1Java unit 1
Java unit 1
Shipra Swati
 
Introduction to Java Programming
Introduction to Java Programming Introduction to Java Programming
Introduction to Java Programming
Saravanakumar R
 
1 java programming- introduction
1  java programming- introduction1  java programming- introduction
1 java programming- introduction
jyoti_lakhani
 
History of java
History of javaHistory of java
History of java
Mani Sarkar
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
siragezeynu
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
Ajay Sharma
 
Java introduction
Java introductionJava introduction
Java introduction
Kuppusamy P
 
Learn Java Part 1
Learn Java Part 1Learn Java Part 1
Learn Java Part 1
Gurpreet singh
 
Introduction to java
Introduction to java Introduction to java
Introduction to java
Sandeep Rawat
 
Java - OOPS and Java Basics
Java - OOPS and Java BasicsJava - OOPS and Java Basics
Java - OOPS and Java Basics
Victer Paul
 
1 Introduction To Java Technology
1 Introduction To Java Technology 1 Introduction To Java Technology
1 Introduction To Java Technology
dM Technologies
 
Java introduction
Java introductionJava introduction
Java introduction
Sagar Verma
 
Chapter 1 introduction to java technology
Chapter 1 introduction to java technologyChapter 1 introduction to java technology
Chapter 1 introduction to java technology
sshhzap
 
basic core java up to operator
basic core java up to operatorbasic core java up to operator
basic core java up to operator
kamal kotecha
 
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 Tutorial For Beginners - Step By Step | Java Basics | Java Certification...
Java Tutorial For Beginners - Step By Step | Java Basics | Java Certification...Java Tutorial For Beginners - Step By Step | Java Basics | Java Certification...
Java Tutorial For Beginners - Step By Step | Java Basics | Java Certification...
Edureka!
 
Introduction to JAVA
Introduction to JAVAIntroduction to JAVA
Introduction to JAVA
Md. Tanvir Hossain
 
Core Java
Core JavaCore Java
Core Java
Prakash Dimmita
 
Basics of java programming language
Basics of java programming languageBasics of java programming language
Basics of java programming language
masud33bd
 
Introduction to Java Programming
Introduction to Java Programming Introduction to Java Programming
Introduction to Java Programming
Saravanakumar R
 
1 java programming- introduction
1  java programming- introduction1  java programming- introduction
1 java programming- introduction
jyoti_lakhani
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
Ajay Sharma
 
Java introduction
Java introductionJava introduction
Java introduction
Kuppusamy P
 
Introduction to java
Introduction to java Introduction to java
Introduction to java
Sandeep Rawat
 
Java - OOPS and Java Basics
Java - OOPS and Java BasicsJava - OOPS and Java Basics
Java - OOPS and Java Basics
Victer Paul
 
1 Introduction To Java Technology
1 Introduction To Java Technology 1 Introduction To Java Technology
1 Introduction To Java Technology
dM Technologies
 
Java introduction
Java introductionJava introduction
Java introduction
Sagar Verma
 
Chapter 1 introduction to java technology
Chapter 1 introduction to java technologyChapter 1 introduction to java technology
Chapter 1 introduction to java technology
sshhzap
 
basic core java up to operator
basic core java up to operatorbasic core java up to operator
basic core java up to operator
kamal kotecha
 
Java Tutorial For Beginners - Step By Step | Java Basics | Java Certification...
Java Tutorial For Beginners - Step By Step | Java Basics | Java Certification...Java Tutorial For Beginners - Step By Step | Java Basics | Java Certification...
Java Tutorial For Beginners - Step By Step | Java Basics | Java Certification...
Edureka!
 

Similar to Java Tutorial to Learn Java Programming (20)

TechSearchWeb.pdf
TechSearchWeb.pdfTechSearchWeb.pdf
TechSearchWeb.pdf
TechSearchWeb
 
Technology Tutorial.pdf
Technology Tutorial.pdfTechnology Tutorial.pdf
Technology Tutorial.pdf
TechSearchWeb
 
TechSearchWeb Tutorials.pdf
TechSearchWeb Tutorials.pdfTechSearchWeb Tutorials.pdf
TechSearchWeb Tutorials.pdf
TechSearchWeb
 
0f0cef_1dac552af56c4338ab0672859199e693.pdf
0f0cef_1dac552af56c4338ab0672859199e693.pdf0f0cef_1dac552af56c4338ab0672859199e693.pdf
0f0cef_1dac552af56c4338ab0672859199e693.pdf
DeepakChaudhriAmbali
 
JAVA ALL 5 MODULE NOTES.pptx
JAVA ALL 5 MODULE NOTES.pptxJAVA ALL 5 MODULE NOTES.pptx
JAVA ALL 5 MODULE NOTES.pptx
DrPreethiD1
 
Java Basic.pdf
Java Basic.pdfJava Basic.pdf
Java Basic.pdf
TechSearchWeb
 
java introduction.docx
java introduction.docxjava introduction.docx
java introduction.docx
vikasbagra9887
 
JAVA PROGRAMMING-Unit I - Final PPT.pptx
JAVA PROGRAMMING-Unit I - Final PPT.pptxJAVA PROGRAMMING-Unit I - Final PPT.pptx
JAVA PROGRAMMING-Unit I - Final PPT.pptx
SuganthiDPSGRKCW
 
Java Notes .pdf
Java Notes .pdfJava Notes .pdf
Java Notes .pdf
gokulprasanna4
 
Java programming Evolution-OverviewOfJava.pdf
Java programming Evolution-OverviewOfJava.pdfJava programming Evolution-OverviewOfJava.pdf
Java programming Evolution-OverviewOfJava.pdf
AbhishekSingh961152
 
Java ms harsha
Java ms harshaJava ms harsha
Java ms harsha
Harsha Batra
 
Java ppt-class_Introduction_class_Objects.ppt
Java ppt-class_Introduction_class_Objects.pptJava ppt-class_Introduction_class_Objects.ppt
Java ppt-class_Introduction_class_Objects.ppt
VGaneshKarthikeyan
 
130700548484460000
130700548484460000130700548484460000
130700548484460000
Tanzeel Ahmad
 
Java ppt-class_basic data types methods definitions
Java ppt-class_basic data types methods definitionsJava ppt-class_basic data types methods definitions
Java ppt-class_basic data types methods definitions
ganeshkarthy
 
Java
JavaJava
Java
sasi saseenthiran
 
Unit1- OOPJ Chapter-1 Object Oriented Programming JAVA.pptx
Unit1- OOPJ Chapter-1 Object Oriented Programming JAVA.pptxUnit1- OOPJ Chapter-1 Object Oriented Programming JAVA.pptx
Unit1- OOPJ Chapter-1 Object Oriented Programming JAVA.pptx
Divya573916
 
Java application-development
Java application-developmentJava application-development
Java application-development
Deepika Chaudhary
 
Java 2 computer science.pptx
Java 2 computer science.pptxJava 2 computer science.pptx
Java 2 computer science.pptx
MUHAMMED MASHAHIL PUKKUNNUMMAL
 
Programming in java ppt
Programming in java  pptProgramming in java  ppt
Programming in java ppt
MrsRLakshmiIT
 
Programming in java ppt
Programming in java  pptProgramming in java  ppt
Programming in java ppt
MrsRBoomadeviIT
 
Technology Tutorial.pdf
Technology Tutorial.pdfTechnology Tutorial.pdf
Technology Tutorial.pdf
TechSearchWeb
 
TechSearchWeb Tutorials.pdf
TechSearchWeb Tutorials.pdfTechSearchWeb Tutorials.pdf
TechSearchWeb Tutorials.pdf
TechSearchWeb
 
0f0cef_1dac552af56c4338ab0672859199e693.pdf
0f0cef_1dac552af56c4338ab0672859199e693.pdf0f0cef_1dac552af56c4338ab0672859199e693.pdf
0f0cef_1dac552af56c4338ab0672859199e693.pdf
DeepakChaudhriAmbali
 
JAVA ALL 5 MODULE NOTES.pptx
JAVA ALL 5 MODULE NOTES.pptxJAVA ALL 5 MODULE NOTES.pptx
JAVA ALL 5 MODULE NOTES.pptx
DrPreethiD1
 
java introduction.docx
java introduction.docxjava introduction.docx
java introduction.docx
vikasbagra9887
 
JAVA PROGRAMMING-Unit I - Final PPT.pptx
JAVA PROGRAMMING-Unit I - Final PPT.pptxJAVA PROGRAMMING-Unit I - Final PPT.pptx
JAVA PROGRAMMING-Unit I - Final PPT.pptx
SuganthiDPSGRKCW
 
Java programming Evolution-OverviewOfJava.pdf
Java programming Evolution-OverviewOfJava.pdfJava programming Evolution-OverviewOfJava.pdf
Java programming Evolution-OverviewOfJava.pdf
AbhishekSingh961152
 
Java ppt-class_Introduction_class_Objects.ppt
Java ppt-class_Introduction_class_Objects.pptJava ppt-class_Introduction_class_Objects.ppt
Java ppt-class_Introduction_class_Objects.ppt
VGaneshKarthikeyan
 
Java ppt-class_basic data types methods definitions
Java ppt-class_basic data types methods definitionsJava ppt-class_basic data types methods definitions
Java ppt-class_basic data types methods definitions
ganeshkarthy
 
Unit1- OOPJ Chapter-1 Object Oriented Programming JAVA.pptx
Unit1- OOPJ Chapter-1 Object Oriented Programming JAVA.pptxUnit1- OOPJ Chapter-1 Object Oriented Programming JAVA.pptx
Unit1- OOPJ Chapter-1 Object Oriented Programming JAVA.pptx
Divya573916
 
Java application-development
Java application-developmentJava application-development
Java application-development
Deepika Chaudhary
 
Programming in java ppt
Programming in java  pptProgramming in java  ppt
Programming in java ppt
MrsRLakshmiIT
 
Ad

Recently uploaded (20)

Douwan Crack 2025 new verson+ License code
Douwan Crack 2025 new verson+ License codeDouwan Crack 2025 new verson+ License code
Douwan Crack 2025 new verson+ License code
aneelaramzan63
 
Microsoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdf
Microsoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdfMicrosoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdf
Microsoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdf
TechSoup
 
Solidworks Crack 2025 latest new + license code
Solidworks Crack 2025 latest new + license codeSolidworks Crack 2025 latest new + license code
Solidworks Crack 2025 latest new + license code
aneelaramzan63
 
Landscape of Requirements Engineering for/by AI through Literature Review
Landscape of Requirements Engineering for/by AI through Literature ReviewLandscape of Requirements Engineering for/by AI through Literature Review
Landscape of Requirements Engineering for/by AI through Literature Review
Hironori Washizaki
 
Adobe Illustrator Crack | Free Download & Install Illustrator
Adobe Illustrator Crack | Free Download & Install IllustratorAdobe Illustrator Crack | Free Download & Install Illustrator
Adobe Illustrator Crack | Free Download & Install Illustrator
usmanhidray
 
Download Wondershare Filmora Crack [2025] With Latest
Download Wondershare Filmora Crack [2025] With LatestDownload Wondershare Filmora Crack [2025] With Latest
Download Wondershare Filmora Crack [2025] With Latest
tahirabibi60507
 
Adobe Master Collection CC Crack Advance Version 2025
Adobe Master Collection CC Crack Advance Version 2025Adobe Master Collection CC Crack Advance Version 2025
Adobe Master Collection CC Crack Advance Version 2025
kashifyounis067
 
Adobe After Effects Crack FREE FRESH version 2025
Adobe After Effects Crack FREE FRESH version 2025Adobe After Effects Crack FREE FRESH version 2025
Adobe After Effects Crack FREE FRESH version 2025
kashifyounis067
 
Avast Premium Security Crack FREE Latest Version 2025
Avast Premium Security Crack FREE Latest Version 2025Avast Premium Security Crack FREE Latest Version 2025
Avast Premium Security Crack FREE Latest Version 2025
mu394968
 
Adobe Photoshop CC 2025 Crack Full Serial Key With Latest
Adobe Photoshop CC 2025 Crack Full Serial Key  With LatestAdobe Photoshop CC 2025 Crack Full Serial Key  With Latest
Adobe Photoshop CC 2025 Crack Full Serial Key With Latest
usmanhidray
 
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Dele Amefo
 
Secure Test Infrastructure: The Backbone of Trustworthy Software Development
Secure Test Infrastructure: The Backbone of Trustworthy Software DevelopmentSecure Test Infrastructure: The Backbone of Trustworthy Software Development
Secure Test Infrastructure: The Backbone of Trustworthy Software Development
Shubham Joshi
 
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
Egor Kaleynik
 
TestMigrationsInPy: A Dataset of Test Migrations from Unittest to Pytest (MSR...
TestMigrationsInPy: A Dataset of Test Migrations from Unittest to Pytest (MSR...TestMigrationsInPy: A Dataset of Test Migrations from Unittest to Pytest (MSR...
TestMigrationsInPy: A Dataset of Test Migrations from Unittest to Pytest (MSR...
Andre Hora
 
Revolutionizing Residential Wi-Fi PPT.pptx
Revolutionizing Residential Wi-Fi PPT.pptxRevolutionizing Residential Wi-Fi PPT.pptx
Revolutionizing Residential Wi-Fi PPT.pptx
nidhisingh691197
 
How to Optimize Your AWS Environment for Improved Cloud Performance
How to Optimize Your AWS Environment for Improved Cloud PerformanceHow to Optimize Your AWS Environment for Improved Cloud Performance
How to Optimize Your AWS Environment for Improved Cloud Performance
ThousandEyes
 
Exploring Code Comprehension in Scientific Programming: Preliminary Insight...
Exploring Code Comprehension  in Scientific Programming:  Preliminary Insight...Exploring Code Comprehension  in Scientific Programming:  Preliminary Insight...
Exploring Code Comprehension in Scientific Programming: Preliminary Insight...
University of Hawai‘i at Mānoa
 
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
Andre Hora
 
Adobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage Dashboards
Adobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage DashboardsAdobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage Dashboards
Adobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage Dashboards
BradBedford3
 
FL Studio Producer Edition Crack 2025 Full Version
FL Studio Producer Edition Crack 2025 Full VersionFL Studio Producer Edition Crack 2025 Full Version
FL Studio Producer Edition Crack 2025 Full Version
tahirabibi60507
 
Douwan Crack 2025 new verson+ License code
Douwan Crack 2025 new verson+ License codeDouwan Crack 2025 new verson+ License code
Douwan Crack 2025 new verson+ License code
aneelaramzan63
 
Microsoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdf
Microsoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdfMicrosoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdf
Microsoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdf
TechSoup
 
Solidworks Crack 2025 latest new + license code
Solidworks Crack 2025 latest new + license codeSolidworks Crack 2025 latest new + license code
Solidworks Crack 2025 latest new + license code
aneelaramzan63
 
Landscape of Requirements Engineering for/by AI through Literature Review
Landscape of Requirements Engineering for/by AI through Literature ReviewLandscape of Requirements Engineering for/by AI through Literature Review
Landscape of Requirements Engineering for/by AI through Literature Review
Hironori Washizaki
 
Adobe Illustrator Crack | Free Download & Install Illustrator
Adobe Illustrator Crack | Free Download & Install IllustratorAdobe Illustrator Crack | Free Download & Install Illustrator
Adobe Illustrator Crack | Free Download & Install Illustrator
usmanhidray
 
Download Wondershare Filmora Crack [2025] With Latest
Download Wondershare Filmora Crack [2025] With LatestDownload Wondershare Filmora Crack [2025] With Latest
Download Wondershare Filmora Crack [2025] With Latest
tahirabibi60507
 
Adobe Master Collection CC Crack Advance Version 2025
Adobe Master Collection CC Crack Advance Version 2025Adobe Master Collection CC Crack Advance Version 2025
Adobe Master Collection CC Crack Advance Version 2025
kashifyounis067
 
Adobe After Effects Crack FREE FRESH version 2025
Adobe After Effects Crack FREE FRESH version 2025Adobe After Effects Crack FREE FRESH version 2025
Adobe After Effects Crack FREE FRESH version 2025
kashifyounis067
 
Avast Premium Security Crack FREE Latest Version 2025
Avast Premium Security Crack FREE Latest Version 2025Avast Premium Security Crack FREE Latest Version 2025
Avast Premium Security Crack FREE Latest Version 2025
mu394968
 
Adobe Photoshop CC 2025 Crack Full Serial Key With Latest
Adobe Photoshop CC 2025 Crack Full Serial Key  With LatestAdobe Photoshop CC 2025 Crack Full Serial Key  With Latest
Adobe Photoshop CC 2025 Crack Full Serial Key With Latest
usmanhidray
 
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Dele Amefo
 
Secure Test Infrastructure: The Backbone of Trustworthy Software Development
Secure Test Infrastructure: The Backbone of Trustworthy Software DevelopmentSecure Test Infrastructure: The Backbone of Trustworthy Software Development
Secure Test Infrastructure: The Backbone of Trustworthy Software Development
Shubham Joshi
 
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
How Valletta helped healthcare SaaS to transform QA and compliance to grow wi...
Egor Kaleynik
 
TestMigrationsInPy: A Dataset of Test Migrations from Unittest to Pytest (MSR...
TestMigrationsInPy: A Dataset of Test Migrations from Unittest to Pytest (MSR...TestMigrationsInPy: A Dataset of Test Migrations from Unittest to Pytest (MSR...
TestMigrationsInPy: A Dataset of Test Migrations from Unittest to Pytest (MSR...
Andre Hora
 
Revolutionizing Residential Wi-Fi PPT.pptx
Revolutionizing Residential Wi-Fi PPT.pptxRevolutionizing Residential Wi-Fi PPT.pptx
Revolutionizing Residential Wi-Fi PPT.pptx
nidhisingh691197
 
How to Optimize Your AWS Environment for Improved Cloud Performance
How to Optimize Your AWS Environment for Improved Cloud PerformanceHow to Optimize Your AWS Environment for Improved Cloud Performance
How to Optimize Your AWS Environment for Improved Cloud Performance
ThousandEyes
 
Exploring Code Comprehension in Scientific Programming: Preliminary Insight...
Exploring Code Comprehension  in Scientific Programming:  Preliminary Insight...Exploring Code Comprehension  in Scientific Programming:  Preliminary Insight...
Exploring Code Comprehension in Scientific Programming: Preliminary Insight...
University of Hawai‘i at Mānoa
 
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
Andre Hora
 
Adobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage Dashboards
Adobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage DashboardsAdobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage Dashboards
Adobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage Dashboards
BradBedford3
 
FL Studio Producer Edition Crack 2025 Full Version
FL Studio Producer Edition Crack 2025 Full VersionFL Studio Producer Edition Crack 2025 Full Version
FL Studio Producer Edition Crack 2025 Full Version
tahirabibi60507
 
Ad

Java Tutorial to Learn Java Programming

  • 1. 1. Java Tutorial – Objective In this Java tutorial, we are going to learn about java evolution, development of Java language, java features, Java frameworks, and Java support systems. Java tutorial covers various development tools, classes in Java programming, and Java methods which comprises the Java environment. This tutorial on java will help you get a quick insight into the Java programming language and thus, help you learn java language. Java Tutorial – java language 2. Introduction to Java Programming Language Java Programming is a general-purpose object-oriented programming language, designed for the development of software for consumer electronic devices such as TVs, VCRs, toasters, etc. Java is a platform neutral language, which means it is not tied to any particular hardware or operating system. It guarantees users to ‘write once, run anywhere’. Java language is supported by almost every operating system such as Sun Solaris, RedHat, Windows etc. Java Tutorial- Introduction to Java Language
  • 2. Java programming language was developed by Sun Microsystems of the USA in 1991, it was originally calledOak by James Gosling, who was one of the inventors of the language. The main goal for the developers was to make the language highly reliable,portable and simple. The team for the development of Java language included Patrick Naughton, who discovered that the existing languages such as C and C++ had some major drawbacks in terms of reliabilityand portability. They modeled the new language Java on C and C++ while removing some features which they considered as constraints. This made Java a really simple, portable and powerful language. To learn java basics, let’s revise Java syntax. 3. Java Tutorial – History of Java There is a chronicle of events that occurred during the whole course of development of the Java language.  1990-A team of Sun Microsystems programmers decided to develop a special software to manipulate consumer electronic devices. The team headed by James Gosling  1991-The team studied various languages present at that time, viz., C and C++ and announced the newlanguage to be “Oak”.  1992-The team at Sun known as Green Project demonstrated the applicationoftheirnew language. For example, to control a list of home appliances usinga hand device with the tinytouchscreen.  1993-The World Wide Web came to the internet and transformed the text-based Internet into the graphical rich environment.The Green Project team came up with an idea of developingWeb applets (tinyprograms)that could run on all types of computers connected to the internet.  1994-The team developed a web browser called “HotJava” to locate and run applet programs on the internet.This made it immensely popularamongst the internet users.  1995-Oak was renamed as “Java”, due to some legal snags. Java is a name, no acronym.  1996-Java programmingwas established as the leader for internet programmingand also as a general-purpose object-oriented programminglanguage.Sun releases Java Development Kit 1.0.
  • 3.  1997-Sun releases Java Development Kit 1.1 (JDK 1.1)  1998-Sun releases the Java 2 with version 1.2 of the Software Development Kit (SD K 1.2)  1999-Sun releases Java 2 platform, Standard Edition(J2SE) and Enterprise Edition (J2EE)  2000-Release ofJ2SE with SDK 1.3.  2002-The release of J2SE with SDK 1.4.  2004-The release of J2SE with JDK 5.0 (instead of JDK 1.5), known as J2SE 5.0.  2006- The release of Java SE 6.  2011- The release of Java SE 7.  2014- The release of Java SE 8.  2017- The release of Java SE 9. 4. Features of Java Programming Java Tutorial- Features of Java Programming Language The main goal of the inventors was to design a language which could offer solutions to the problems encountered in modern programming. The goal being the language to be reliable,portable and distributed and at the same time simple, compact and interactive. a. Compiled and Interpreted Java language combines both of these approaches thus making Java a two- stage system. This approach was never offered before, as any language before was either compiled or interpreted. Firstly, Java compiler translates source code into bytecode instructions, bytecodes are not machine instructions. Secondly, Java interpreter generates machine code that can be directly executed by the machine that is running the Java program. b. Independent and Portable Java programs can be easilymoved from one system to another, anywhere and anytime. Changes or any upgrade in the operating system, processors and system resources will not force any changes in Java programs.
  • 4. Java programming ensures portability in two ways: firstly, Java compiler generates bytecode instructions that can be implemented on any machine, and secondly, the size of the primitive data types are machine independent. c. Object-oriented Almost everything in Java language is an object, which makes it a true object-oriented language. All program code and data reside within objects and classes.Java comes with an extensive set of classes, arranged in packages, which are used in program inheritance. d. Robust and Secure Java language provides many safeguards to ensure reliable code. It has strict run-time checking for data types. It is designed as a garbage collected language, i.e., it captures series errors and eliminates any risk of crashing the system. Java systems verify all the memory access and thus ensures that no virus is communicated with an applet. e. Distributed Java programming facilitates both, sharing of data and programs. Java applications can open and access remote objects on Internet as easily as on any local system. f. Simple, Small and Familiar Java is a simplified version of C++, which is why it is familiar and yet different as it eliminates all the redundant and unreliable code. For example, Java does not use pointers, preprocessor header files, and many others. It also eliminates operator overloading and multiple inheritances in Java. g. Multithreaded and Interactive Multithreaded means handling different tasks simultaneously. Java language supports multithreaded programs, which means that we need not have to wait for one task to finish for another to start. This feature of java greatly improves the interactive performance of graphical applications.
  • 5. h. High Performance Java programming performance is very impressive considering the fact that is an interpreted language, mainly because of the bytecodes. Java architecture is designed to reduce overheads. i. Dynamic and Extensible Java is a dynamic language, it is capable of dynamically linking in new class libraries,methods, and objects. It can also determine the type of class through query. j. Ease of Development Java 2 standard edition (J2SE) 5.0 supports features such as Generics, Enhanced for loop, Autoboxing or unboxing, Typesafe enums, varargs, Static import and Annotation. These java features make it easy for the java programmer by shifting the responsibilityof creating the reusable code to the compiler, and also the resulting code is free from bugs. k. Scalability and Performance J2SE 5.0 improves the startup time and reducing the amount of memory used in Java 2 runtime environment. Learn more features of Java. 5. Java Tutorial – C vs Java vs C++ Java Tutorial – C vs C++ vs JAVA a. C vs Java The major difference between C vs Java Programming language is that Java is an Object Oriented language and has a mechanism to define classes and objects in java. The features of C which are not included in Java are:  No unique statement keywords of C size and typedef.  No data types such as struct and union.  Java does not define the type modifier keywords such as auto, extern,register, signed and unsigned.  No support forpointer type.  Non-availabilityofpreprocessor
  • 6.  Java requires that the function with no argument must be declared with emptyparenthesis and with the void keyword.  New Java operators such as instanceofand >>>.  Java programminghas labeled breakand continue statements. b. Java vs C++ The main difference between c++ vs Java is that Java is a true Object- oriented language while C++ just adds an object-oriented extension to C. The increment operator in C++ indicates the same thing. The features listed below are intentionally omitted from Java language to make it better.  No support foroperatoroverloading.  No template classes as in C++.  A new feature called “interface” in Java programmingand thus not supportingmultiple inheritances.  Java language does not support global variables.  Java uses a finalize () function instead ofthe destructorfunction.  There are no header files in Java programming. Let’s discuss Java Regular Expression and Java Array. 6. Java Tutorial – Java Language and the Internet Java Tutorial – Java Language and Internet Java is often called Internet language because the first application program written in Java was HotJava, a Web browser to run applets on the Internet. Internet users can use Java to create applets and run them locallyusing HotJava. A Java-enabled browser to download an applet located anywhere on the Internet can also be used. Java applets have made the Internet a true extension of the storage system on local computers. Internet users can also set up their websites containing Java applets that could be used by remote users.
  • 7. 7. Java Tutorial – Java Programming and World Wide Web Java Tutorial – Java Programming Language with WWW World Wide Web (www) is an information retrieval system where any information or file is identified as Uniform source Locators (URLs) and are interlinked via hypertext links. WWW can be accessed with the help of internet. Internet and Java programming, both had the same philosophy and thus they were incorporated with each other easily. Java made it possible for the World Wide Web to support animation, graphics, games, and a wide range of special effects. To communicate with any web page, Java uses APPLETs. The steps involved are – 1. The user requests fora hyperlinkdocument to remote computer’s web server. (a web server receives, processes,and sends the requested document) 2. The document contains the APPLET tag, which identifies the applet. 3. Java source code file compiles the bytecode for that applet,which is then transferred to user’s computer. 4. The browser which is enabled byJava programmingthen interprets the bytecode and provides the output. 8. Java Tutorial – Support Systems The operations of Java language and Java-enabled browsers on the internet requires a variety of support systems, namely,  Internet Connection  Web server  Web Browser  HTML- A language for creatinghypertext for the web.  APPLET tag  Java code  Bytecode  Proxy Server-an intermediate serverbetween the requestingclient workstation and the original server.
  • 8.  Mail Server 9. Java Tutorial – Java Environment It includes a large number of java development tools and java classes and methods. The Java development tools are part of the system known as Java Development Kit (JDK) and the classes and the methods in Java are a part of the Java Standard Library (JSL), also known as the Application Programming Interface (API). a. Java Development Kit Java Development Kit includes-  appletviewer (forviewing Java applets)  javac ( Java compiler)  java ( Java interpreter )  javap ( Java disassembler )  javah ( for C header files)  javadoc( for creating HTML files )  jdb ( Java debugger ) b. Application Programming Interface The Java Standard Library includes classes and packages, some most commonly used packages are- Language Support Package- A collection of Java classes and methods required for implementing basic features of Java.  UtilityPackage- To provide java utilityfunctions.  Input/output Package-For java input/ outputmanipulation.  Networking Package- For communicatingvia the internet.  AWT Package- The abstract window toolkit package contains classes that implement platform independent graphical user interface.  Applet Package- It allows to create Java applets.
  • 9. c. Java Runtime Environment It facilitates the execution of Java programs, comprising- Java Virtual Machine (JVM) – It interprets the intermediate Java bytecode and generates the desired output.  Runtime class libraries-These are a set of core Java class libraries for execution of the java program.  User interface toolkits-Used for interaction with the Java applicationprogram.  Deployment technologies 1)Java plugin- Enables the execution of a Java applet. 2) Java Web start- Enables an application to directly launch from the web browser without installing. Learn more about Java Datatypes and Java Modifiers. 10. Java Tutorial – Constructs Constructs are basicallyreserved keywords in any language, which cannot be used in rest of the programs, i.e., as name of variables in Java, class or method. Java has around 50 such words,they are- 11. Conclusion Finally, In this Java tutorial, we learned about the history of Java programming language, java features, how java is different from C and C++, how it is incorporated in World Wide Web with help of Web browsers and the environment required for running Java applications.