You are on page 1of 5

OBJECT ORIENTED PROGRAMMING

Topic 
Made by : SUBHOJIT ROY(BCA 2nd Year)
1. What is java?
Roll no : 13301221051
2. What is JRE , JDK , JVM?
On Account of : Continuous Assessment 1(3rd Sem)
3. Write a basic program in java and explain it.
Paper code : BCAC301
WHAT IS JAVA ?

Java is a programming language and computing platform first released by Sun Microsystems in 1995. It has evolved
from humble beginnings to power a large share of today’s digital world, by providing the reliable platform upon which
many services and applications are built. New, innovative products and digital services designed for the future
continue to rely on Java, as well.

While most modern Java applications combine the Java runtime and
application together, there are still many applications and even some
websites that will not function unless you have a desktop Java installed.
Java.com, this website, is intended for consumers who may still require Java
for their desktop applications – specifically applications targeting Java 8.
ALL ABOUT JVM

JVM (JAVA VIRTUAL MACHINE) JVM Architecture

JVM (Java Virtual Machine) is an abstract machine. It is called a virtual


machine because it doesn't physically exist. It is a specification that provides Java Classloader Memory areas
a runtime environment in which Java bytecode can be executed. It can also runtime allocated by
run those programs which are written in other languages and compiled to system JVM
Java bytecode.

JVMs are available for many hardware and software platforms. JVM, JRE, and
JDK are platform dependent because the configuration of each OS is Native
different from each other. However, Java is platform independent. There are Class Pc
Heap Stack register
method
three notions of the JVM: specification, implementation, and instance. area stack
The JVM performs the following main tasks:
o Loads code
o Verifies code Java
o Executes code native
o Provides runtime environment Execution Native method libraries
Engine interface
ALL ABOUT JRE AND JDK

JRE (Java Runtime Environment) 


JRE is an acronym for Java Runtime Environment. The Java Runtime Environment is a
set of software tools which are used for developing Java applications. It is used to
provide the runtime environment. It is the implementation of JVM. It physically exists.
It contains a set of libraries + other files that JVM uses at runtime.
Set of
The implementation of JVM is also actively released by other companies besides Sun
Micro Systems.
libraries e.g.
rt.jar etc. Developme
JDK (Java Development Kit)  JVM nt tools e.g.
JDK is an acronym for Java Development Kit. The Java Development Kit (JDK) is a software
development environment which is used to develop Java applications and applets. It physically
Javac java
exists. It contains JRE + development tools. etc.
Other files
JDK is an implementation of any one of the below given Java Platforms released by Oracle
Corporation:
o Standard Edition Java Platform
o Enterprise Edition Java Platform
o Micro Edition Java Platform JRE
The JDK contains a private Java Virtual Machine (JVM) and a few other resources such as an
interpreter/loader (java), a compiler (javac), an archiver (jar), a documentation generator
(Javadoc), etc. to complete the development of a Java Application.
JDK
BASIC PROGRAM OF JAVA

class prog1 {
public static void main(String args[])
{
System.out.println("BCA , 3rd SEM is learning Java Programming....");
}
}

Explanation  In this program first of all I’ve made a class named prog1 as this is our first program in Java.
Then I’ve declared the main function which is totally different from C language, here we need to write
“public static void main(String args[])” to declare the main function. Then simply I’ve written a printf
function but again the syntax is not same as C language, here we have to write “System.out.println(“What
we want to print”)”. Like it we have to write the print function to print something in Java. And its
completed, as simple as that.

You might also like