0% found this document useful (0 votes)
37 views73 pages

Java Programming: History, Editions & Applications

Uploaded by

Polineni Vasu
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views73 pages

Java Programming: History, Editions & Applications

Uploaded by

Polineni Vasu
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

Java

Programming
Agenda:

• History
• Features
• Editions
• Types of
Applications
istor
History
History of Java :
History of Java :
•Introduced for Interactive Television

•It is called "GREEN TALK.“

•The file extension used for Green


Talk is .gt

•It was renamed as "OAK" as part of


the Green Project as symbol of
strength.

•OAK is the national tree for the USA,


France, Germany, and Romania.
History of Java :
History of Java :

•Java was developed by James Gosling


and his team at Sun Microsystems in
the mid-1990s.

•Java was designed as a general-


purpose programming language with a
focus on simplicity, security, and
platform independence.

•The first public version of Java, Java


1.0, was released in 1996.
-------------------------------------

Versions of Java:
1995 - Java Alpha&Beta
1996 - JDK 1.0 2014 - Java8
1997 - JDK 1.1 =>JDK 1.8
1998 - JDK 1.2 =>JRE 1.8
2000 - JDK 1.3 2017 - Java9
2002 - JDK 1.4 =>JDK 1.9
=>JRE 1.9
2004 - Java5 2018 - Java10 and Java11
=>JDK 1.5&JRE 1.5 2019 - Java12 and Java13
2006 - Java6 2020 - Java14 and Java15
=>JDK 1.6&JRE 1.6 2021 - Java16 and Java17
2011 - Java7 2022- Java18 and Java19
=>JDK 1.7&JRE 1.7 2023- Java 20
Key Features:
Different Editions of Java
Different Editions of Java

JAVA SE JAVA EE JAVA ME JAVA Fx


Java SE
The Java Platform Standard
Edition (Java SE) is made up of APIs
(Application Programming Interfaces)
that provide Java's fundamental
programming features

The Java SE Platform Includes:


JVM (Java Virtual Machine),
JDK (Java Development Kit),
JRE (Java Run-time Environment), and
Various class libraries.
Different Editions of Java
Different Editions of Java

JAVA SE JAVA EE JAVA ME JAVA Fx


Java EE
The Java Enterprise Edition (Java EE) was
developed to expand the Java SE with
the addition of a collection of
standards/specifications that describe
frequently used features by commercial
applications

The Java EE Features:


• Java Server Pages (JSP)
• Java Server Faces (JSF)
• Java Persistence API (JPA)
• Enterprise Java Beans (EJB)
Different Editions of Java
Different Editions of Java

JAVA SE JAVA EE JAVA ME JAVA Fx


Java ME

Java Micro Edition was developed to


facilitate mobile and embedded device
application & platform offers an API and
a small-footprint virtual machine that
helps in running Java ME applications on
compact devices.
Different Editions of Java
Different Editions of Java

JAVA SE JAVA EE JAVA ME JAVA Fx


Java FX

JavaFX is a platform that provides a


modern, hardware-accelerated graphics
and media engine for building rich online
and desktop applications with a simple
and powerful scripting language
Different types of Applications:
Different types of Applications:

Standalone
Applications
Enterprise
Applications
Web
Applications
Mobile
Applications
Different types of Applications:

Standalone A Program is run by as Separate Computer process without adding


Applications an exiting files process is known as Standalone Applications. E.g. :
Notepad, Calculator
Enterprise
Applications
Web
Applications
Mobile
Applications
Different types of Applications:

Standalone
Applications
Enterprise
Applications
Web
Applications
Mobile
Applications
Different types of Applications:

Standalone
Applications
Enterprise Enterprise Applications is related to middleware applications. It
Applications enables hardware & software applications. E.g. : Banking
Applications
Web
Applications
Mobile
Applications
Different types of Applications:

Standalone
Applications
Enterprise
Applications
Web
Applications
Mobile
Applications
Different types of Applications:

Standalone
Applications
Enterprise
Applications
Web Web Applications is a Client Server software Applications which is
Applications run by Client. It includes Servlets, JSP etc.. E.g. : Online retail sales
websites
Mobile
Applications
Different types of Applications:

Standalone
Applications
Enterprise
Applications
Web
Applications
Mobile
Applications
Different types of Applications:

Standalone
Applications
Enterprise
Applications
Web
Applications
Mobile Mobile Applications is developed for run the mobile phone and
Applications tablets
E.g. : Mobile Games. Web developed Applications
Different types of Applications:

Standalone
Applications
Enterprise
Applications
Web
Applications
Mobile
Applications
Different types of Applications:

Standalone A Program is run by as Separate Computer process without adding


Applications an exiting files process is known as Standalone Applications. E.g. :
Notepad, Calculator
Enterprise Enterprise Applications is related to middleware applications. It
Applications enables hardware & software applications. E.g. : Banking
Applications
Web Web Applications is a Client Server software Applications which is
Applications run by Client. It includes Servlets, JSP etc.. E.g. : Online retail sales
websites
Mobile Mobile Applications is developed for run the mobile phone and
Applications tablets
E.g. : Mobile Games. Web developed Applications
Basic Layout of
Application :
Basic Layout of
Application :
Basic Layout of
Application :
Basic Layout of
Application :
Basic Layout of
Application :

Pictures of
ISTS College
Basic Layout of
Application :
High Level
Language
Translators

Translators

Compiler Interpreter Assembler


Low Level
Language
Translators

A compiler takes the source code as a whole and


Compiler translates it into object code all in one go. Once
converted, the object code can be run unassisted at
any time. This process is called Compiler
Interpreter

Assembler
Translators

Compiler

An interpreter translates source code into object


Interpreter code one instruction at a time. The resulting object
code is then executed immediately. The process is
called interpretation.
Assembler
Translators

Compiler

Interpreter

Assemblers are a third type of translator. The purpose


Assembler of an assembler is to translate assembly language into
object code.
Agenda:

• Course Overview
• Platform Independent & Dependent
• Environment Setup
• Intro of JDK
• Stages of Program
• Starting with JAVA
Course Overview

Introduction Versions Editions Translators Applications

Java
Platform Control
Development Data Types Operators
Dependency Statements
Kit

Object
Pattern Java Wrapper
Oriented Arrays
Programming Components classes
Programming

Collections Exception
String Classes Multithreading Stream API
Framework Handling
Quiz Time
Java Variables
Components
Methods
Blocks
Constructors
Classes
Interfaces
Abstract Classes
Class

Object

OOP’s Features
Inheritance

Encapsulation

Polymorphism

Abstraction
What is Meant by Platform Independent /
Dependent..?
Linux

Program File
MacOS

Windows
Platform
dependent

E.g. : C, C++
Platform
Independent

E.g. : Java, Python


[Link]/.
Hello.C [Link]
o

Translator Execution

[Link] [Link] JVM


JVM

JAVA VIRTUAL MACHINE


A Java virtual machine (JVM) is a virtual machine that enables a
computer to run Java programs as well as programs written in other
languages that are also compiled to Java bytecode.

Where we can get it …?


The JDK is a
development
environment for
building applications,
applets, and
components using the
Java programming
language.
Agenda :

• Methods
• Classification of methods
Which stage of a program involves identifying and fixing errors or
bugs?

a) Compilation
b) Execution
c) Debugging
d) Optimization
Java is considered platform-independent. What does this mean?

a) Java programs can only run on Windows operating systems.


b) Java programs can run on any operating system without
modification.
c) Java programs require a specific operating system to run.
d) Java programs can only run on mobile devices.
What does JDK stand for?

a) Java Development Kit


b) Java Debugging Kit
c) Java Deployment Kit
d) Java Documentation Kit
Which of the following is not a valid
primitive data type in Java?

a) int
b) float
c) char
d) string
Which keyword is used to declare a class in Java?

a) class
b) void
c) New
d) static
Juspay
Last student’s ID

There is an id code that is supposed to be given to all the aspirants of an exam. It is actually a
substring of a given string. That means, the authority takes a string and then assigns all the unique
substrings to all the students. Suppose there is a string “abcde”, so the ids of the students will be
“a”, ”b”, ”c”, ”d”, ”e”, ’ab”, ”abc”,”abcd”,”abcde”,”bc”,”bcd”,”bcde”,”cd”,”cde”,”de”.

The students are standing in a line according to the lexicographic order of their given ids. You have
to find out the id of the last student for the given input string from which the ids are generated.

Input Format:
Single line with the id generating string
Output format:
The last id as per lexicographical order
Constraints:
Number of characters in the string<=10^9
Sets -> Will allow us to store only unique data
TreeSet -> Organises the data based on Acending order
abcde
C
A
CD
AB
CDE
ABC
D
ABCD
DE
ABCDE
B
BC
BCD
BCDE
Explanation:
Sample Input: The last student will be with the id dc. The order
will be
abdc abdc
a
ab
Sample output: abd
dc abdc
b
bd
bdc
c
d
d
Coin Game

Raman was playing a game, he starts with x coins. Now in every step, he wins and loses and he
has to get the money or pay the money as needed. He came in contact with a psychic who can
see the future and the Psychic predicted the outcomes after each step. Now Raman wants to
start the game with the minimum wage where he doesn’t run out of money. Help Raman to find
what money he should start with. The only rule to keep playing is not going in a credit situation.
Input Format:
•First line with n, number of steps in the game
•Next n lines, n integers denoting outcomes of every game. Positive means winning and
negative means losing that money.

Output Format:
One single integer denoting the minimum amount to start with
Constraints:
Number of steps<=10^9
-1000<=Money needed in each step<=1000
Sample Input:
4
2
-9
15
2

Sample Output:
7

Explanation:
If he starts with 7 rupees, then after steps : 7 ->9 -> 0-> 15 -> 17.
Linkedin Profile :

<- QR

Link -> [Link]

Email Id: vijaydmb@[Link]

You might also like