The document provides an overview of Java, its components including the Java Development Kit (JDK), Java Runtime Environment (JRE), and Java Virtual Machine (JVM). It explains key concepts such as Java bytecode, object-oriented programming (OOP), and the use of integrated development environments (IDEs) for software development. Additionally, it outlines the roles of JDK, JRE, and JVM in creating and running Java applications.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
5 views
chapter1[1]
The document provides an overview of Java, its components including the Java Development Kit (JDK), Java Runtime Environment (JRE), and Java Virtual Machine (JVM). It explains key concepts such as Java bytecode, object-oriented programming (OOP), and the use of integrated development environments (IDEs) for software development. Additionally, it outlines the roles of JDK, JRE, and JVM in creating and running Java applications.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3
the Java Development Kit (JDK), that has a Java
Chapter#1 Introduction to class library, specific tools, and a separate JVM.
Java A Java™ runtime environment (JRE) is a set of components to create and run a Java Short Questions: application. A JRE is part of a Java development kit (JDK). A JRE is made up of a Java virtual machine (JVM), Java class 1-Define Java? libraries, and the Java class loader. Java is a popular programming language, created in 1995. It is owned by Oracle, Java is a high level general-purpose, class-based, object-oriented 5-What is JDK (java development kit)? programming language designed to create desktop and mobile applications We can define the Java Development Kit as a software development environment responsible for creating a run-time environment for the Java source Java is an object-oriented programming language. code to run. Everything in Java is associated with classes and objects, along with its attributes and methods. For example: in real life, a car is an object. The car 6-What is an IDE? has attributes, such as weight and color, and methods, such as drive and brake. An integrated development environment (IDE) is a software application that helps programmers develop software code efficiently. It increases developer productivity by combining capabilities 2-What is JVM? such as software editing, building, testing, and packaging in an easy-to-use application. A Java virtual machine (JVM) is a virtual machine that enables a computer to The following are some reasons why developers use IDEs: run Java programs as well as programs written in other languages that are also compiled Code editing automation to Java bytecode. Syntax highlighting
3-What is java bytecode? Intelligent code completion
Java bytecode is the instruction set for the
Java Virtual Machine. 7-What is OOP ? Bytecodes are the machine language of the Java Object-oriented programming (OOP) is a virtual machine. computer programming model that organizes software design around data, or objects, rather 4-What is JRE? than functions and logic.
The Java Runtime Environment (JRE) is software 8-what is class?
that Java programs require to run correctly, A Class is like an object constructor, or a "blueprint" Java Run-time Environment (JRE) is the part of for creating objects. A class in Java is a set of objects which shares common characteristics/ behavior and common Long Questions: properties/ attributes. It is a user-defined
9- How to Create a Class? Difference between JRE ,JVM & JDK?
To create a class, use the keyword class:
JRE (Java Runtime Environment) Create a class named "Main" with a variable x: The JRE is one of three interrelated components public class Main { for developing and running Java programs. The other two components are as follows: int x = 5; JVM } JDK
10-How to create an Object? JRE is an acronym for Java Runtime Environment. It
is also written as Java RTE. The Java Runtime In Java, an object is created from a class. We Environment is a set of software tools which are used have already created the class named Main, so for developing Java applications. It is used to provide now we can use this to create objects. 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. To create an object of Main, specify the class name, followed by the object name, and use the keyword new: The implementation of JVM is also actively released by other companies besides Sun Micro Systems. Example
Create an object called "myObj" and print the
value of x:
public class Main {
int x = 5; JVM (Java Virtual Machine)
JVM (Java Virtual Machine) is an abstract machine. It
is called a virtual machine because it doesn't public static void main(String[] physically exist. It is a specification that provides a args) { runtime environment in which Java bytecode can be executed. It can also run those programs which are Main myObj = new Main(); written in other languages and compiled to Java bytecode. System.out.println(myObj.x); JVM is a virtual machine that enables the } execution of Java bytecode. The JVM acts as an interpreter between the Java } programming language and the underlying hardware.
JVMs are available for many hardware and software
platforms. JVM, JRE, and JDK are platform dependent because the configuration of each OS is different from each other. However, Java is platform independent. There are three notions of the JVM: specification, implementation, and instance.
The JVM performs the following main tasks:
o Loads code o Verifies code o Executes code o Provides runtime environment
JDK (Java Development Kit)
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 exists. It contains JRE + development tools.
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 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.