Debug School

Rajesh Kumar
Rajesh Kumar

Posted on

Some Basics Questions on JAVA

  1. What is JRE? and Write down a use cases of it?
  2. What is JDK? and Write down a use cases of it?
  3. Difference between JDK Vs JRE?
  4. Difference between java Vs javac?

Top comments (9)

Collapse
 
sridhar02101998_729 profile image
Sridhar Modalavalasa • Edited

1.What is JRE? and Write down a use cases of it?
Java Run-time Environment (JRE) is the part of the Java Development Kit (JDK). It is a freely available software distribution which has Java Class Library, specific tools, and a stand-alone JVM.
The JRE is the underlying technology that communicates between the Java program and the operating system. It acts as a translator and facilitator, providing all the resources so that once you write Java software, it runs on any operating system without further modifications.

2.What is JDK? and Write down a use cases of it?
The Java Development Kit, or JDK, is a set of tools for developing Java applications. Developers choose JDKs by Java version and by package or edition—Java Enterprise Edition (Java EE), Java Special Edition (Java SE), or Java Mobile Edition (Java ME).
The JRE combines Java code created using the JDK with the necessary libraries required to run it on a JVM and then creates an instance of the JVM that executes the resulting program.
Use cases:
Web Applications
Desktop GUI
Android Development

  1. Difference between JDK Vs JRE? JDK: a)JDK (Java Development Kit) is a software development kit to develop applications in Java. In addition to JRE, JDK also contains number of development tools (compilers, Java Doc, Java Debugger etc.). b)JDK is primarily used for code execution and has prime functionality of development. c)JDK is platform dependent i.e for different platforms different JDK required. d)JDK = Java Runtime Environment (JRE) + Development tools.

JRE:
a)On other hand JRE is majorly responsible for creating environment for code execution.
b)Like of JDK JRE is also platform dependent.
c)On other hand JRE does not contain tools such as compiler or debugger etc. Rather it contains class libraries and other supporting files that JVM requires to run the program.
d)JRE = Java Virtual Machine (JVM) + Libraries to run the application.

4.Difference between java Vs javac?
The java command is used to execute the bytecode of java. It takes byte code as input and runs it and produces the output.
The javac command is used to compile Java programs, it takes .java file as input and produces bytecode.

Collapse
 
jhansiranibalu_510 profile image
Jhansirani balu • Edited

What is JRE?
JRE - Java Runtime Environment
JRE is a software layer that runs on top of a computer's operating system software.
It is the underlying technology that communicates between the Java program and the operating system.
It provides class Libraries and other resources for that a specific JAVA program needs to run.

What is JDK? and uses cases of it?

JDK- Java Development Kit.
It's cross platformed software development environment that offers the collection oftools and libraries necessary for developing java based software applications.
It is a core package used in Java , along with the JVM and JRE.

Difference between JRE and JDK :

JRE and JDK both are core components in Java programming.

JDK:

JDK-Java Development Kit
It is a software development environment used to develop Java applications and applets
It is a platform-specific software i.e there are separate installers for Windows, Mac, and Unix systems. Java developers can use it on their Windows, macOS, Solaris, and Linux to code and run Java programs.
It contains Java Runtime Environment(JRE) and other development tools like an interpreter, compiler, archiver, and a document generator.

JRE:

JRE- Java Runtime Environment
It is the implementation of JVM (Java Virtual Machine) and it is specially designed to provide an environment to execute Java programs.
It is also platform dependent like JDK. It consists of JVM, Java binaries, and other classes for the smooth execution of the program.
It doesn’t contain any development tools like a compiler, debugger, etc..

Difference between java and javac

java:
The java command is used to execute the bytecode of java.

javac
The javac command is used to compile java programs, it takes .java file as input and produces bytecode.

Collapse
 
konidalabhagyasri_898 profile image
Bhagyasri • Edited

1)What is JRE? and Write down a use cases of it?
The Java Runtime Environment is software that Java programs require to run correctly. Java is a computer language that powers many current web and mobile applications.
In order for the software to execute a program, it needs an environment to run in usually an operating system like Linux, Unix, Microsoft Windows, or MacOS. With no other supporting environments, programs are constrained by the capabilities of the OS and it’s resources.
A JRE acts as a kind of translator and facilitator between the Java program and the OS.

2)What is JDK? and Write down a use cases of it?
The Java Development Kit is a cross-platformed software development environment that offers a collection of tools and libraries necessary for developing Java-based software applications and applets. It is a core package used in Java, along with the JVM and the JRE.
Use cases
Scientific Application. Java is mostly used for developing scientific applications
Financial Sector Server Apps
Trading Application
Android Applications
Embedded Systems
Web Applications
Desktop GUI Application
Software Tools

3)Difference between JDK Vs JRE?
JDK
JDK stands for Java Development Kit. It is a software development environment used to develop Java applications and applets. It is a platform-specific software i.e there are separate installers for Windows, Mac, and Unix systems. Java developers can use it on their Windows, macOS, Solaris, and Linux to code and run Java programs. It contains JRE and other development tools like an interpreter, compiler, archiver, and a document generator. We can possibly install more than one JDK version on the same computer.
JRE
JRE stands for Java Runtime Environment. It is the implementation of JVM and it is specially designed to provide an environment to execute Java programs. It is also platform dependent like JDK. It consists of JVM, Java binaries, and other classes for the smooth execution of the program. It doesn’t contain any development tools like a compiler, debugger, etc. If we only want to execute a program, we just need to install JRE and not JDK, since there is no development or compilation of the code required.

4)Difference between java Vs javac?
The javac command is used to compile Java programs, it takes the .java file as input and produces bytecode.

The java command is used to execute the bytecode of java. It takes byte code as input and runs it and produces the output.

Collapse
 
gannapuramashish1996_960 profile image
Ashish 1234

What is JRE? and Write down a use cases of it?
• JRE stands for java runtime environment.
• JRE contains JVM and libraries which help the application to run
the executable.
• In order to run the application developed in java we need supported
system which is JRE.
The JRE combines Java code created using the JDK with the necessary libraries required to run it on a JVM and then creates an instance of the JVM that executes the resulting program. JVMs are available for multiple operating systems, and programs created with the JRE will run on all of them. In this way, the Java Runtime Environment is what enables a Java program to run in any operating system without modification.
JRE = JAVA VIRTUAL MACHINE + LIBRARIES.
What is JDK? and Write down a use cases of it?
JDK stands for java development kit which has JRE , Development kit , java, javoc, jar and which are needed for the developer to develop , test, compile and build using JDK.
Java is used to interpreter/loader the .class file .
Javoc is used for compilation of code into binaries.
Jar is used for compressed file like jar, war, ear.
JDK = JRE + DEVELOPMENT KIT
Difference between JDK Vs JRE?

DK (Java Development Kit) is a software development kit to develop applications in Java. In addition to JRE, JDK also contains number of development tools (compilers, JavaDoc, Java Debugger etc.). JRE (Java Runtime Environment) is the implementation of JVM and is defined as a software package that provides Java class libraries, along with Java Virtual Machine (JVM), and other components to run applications written in Java programming.

Difference between java Vs javac?
Java is used to interpreter/loader the .class file .
Javoc is used for compilation of code into binaries.

Collapse
 
prudhvins562_157 profile image
Navana Sai Prudhvi

What is JRE? and Write down a use cases of it?
Java Run-time Environment (JRE) is the part of the Java Development Kit (JDK). It is a freely available software distribution which has Java Class Library, specific tools, and a stand-alone JVM. It is the most common environment available on devices to run java programs. The source Java code gets compiled and converted to Java bytecode.
The Java Runtime Environment is a software layer that runs on top of a computer’s operating system software and provides the class libraries and other resources that a specific Java program needs to run.

The JDK and JRE interact with one another to create a sustainable runtime environment that enables the seamless execution of Java-based applications in virtually any operating system.

What is JDK? and Write down a use cases of it?
The Java Development Kit, or JDK, is a set of tools for developing Java applications. Developers choose JDKs by Java version and by package or edition—Java Enterprise Edition (Java EE), Java Special Edition (Java SE), or Java Mobile Edition (Java ME). Every JDK always includes a compatible JRE, because running a Java program is part of the process of developing a Java program.
The JRE combines Java code created using the JDK with the necessary libraries required to run it on a JVM and then creates an instance of the JVM that executes the resulting program.
Usecases:
Web Applications
Desktop GUI
Android Development

Difference between JDK Vs JRE?
JDK stands for Java Development Kit. It is a software development environment used to develop Java applications and applets.
JRE stands for Java Runtime Environment. It is the implementation of JVM (Java Virtual Machine) and it is specially designed to provide an environment to execute Java programs.
JRE is build on top of JVM and JDK is built on top of JRE.
JDK is mainly used for the execution of code and its main functionality is development while JRE is mainly used for creating an environment for code execution.

Difference between java Vs javac?
"javac" helps us to compile our code i.e. file with a .java extension.
"java" runs your compiled code that we have written to meet our requirement.
javac converts our code into a format (byte code) that can be executed by the JVM. In the process it reports the errors and if there are any errors then the class file (which is executed by the jvm) is not created.
We will never run a java file. We can only compile it and get a class file.
We always run class file and not java file.

Collapse
 
pantalabhanuprakash_8008 profile image
BhanuPrakash • Edited

What is JRE? and Write down a use cases of it?

A Java Runtime Environment (JRE) is a set of components to create and run a Java application. A JRE is part of a Java development kit (JDK). It is made up of a Java virtual machine (JVM), Java class libraries, and the Java class loader. JDKs are used to develop Java software; JREs provide programming tools and deployment technologies; and JVMs execute Java programs.

What is JDK? and Write down a use cases of it?

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. 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.

Difference between JDK Vs JRE?

JDK:

  • JDK (Java Development Kit) is a software development kit to develop applications in Java. In addition to JRE, JDK also contains number of development tools (compilers, JavaDoc, Java Debugger etc.).
  • JDK is primarily used for code execution and has prime functionality of development.
  • JDK is platform dependent i.e for different platforms different JDK required.
  • JDK = Java Runtime Environment (JRE) + Development tools.

JRE:

  • JRE (Java Runtime Environment) is the implementation of JVM and is defined as a software package that provides Java class libraries, along with Java Virtual Machine (JVM), and other components to run applications written in Java programming.
  • On other hand JRE is majorly responsible for creating environment for code execution.
  • Like of JDK JRE is also platform dependent.
  • On other hand JRE does not contain tools such as compiler or debugger etc. Rather it contains class libraries and other supporting files that JVM requires to run the program.
  • JRE = Java Virtual Machine (JVM) + Libraries to run the application.

Difference between java Vs javac?

The java command is used to execute the bytecode of java. It takes byte code as input and runs it and produces the output.
The javac command is used to compile Java programs, it takes .java file as input and produces bytecode.

Collapse
 
pindisaidurgadevi_956 profile image
Sai durga devi • Edited

1.What is JRE? and Write down a use cases of it?
JRE(java runtime environment) is a environment which was provides related class libraries and resources to run java programs with support of jdk and jvm irrespective of any os.
usecase : jvm(java virtual machine) is software which was used to executing java program . jre is on disk which will take code and combine with required libraries and starts execution
ex: java class loader

2.What is JDK? and Write down a use cases of it?
JDK(java development kit) it is software package to create java based application and the one of major componet java along with jvm & jre . its mainly used by developers to develop java programs by executing with help of jvm and jre
usecase : jdk contains complier . the complier is a software which will take java files in raw format then converting them into executable files
ex: java complier

3.Difference between JDK Vs JRE?
-> JDK : The jdk is software development kit which is used to develop applications in java . jdk mainly assist in executing programs along with development . its platform dependent (based on os we need to get suitable platform) and jdk is development purpose consist of debugger , monitoring and developing application
-> JRE : the jre is software package that contains of class libraries and resources to run application .jre mainly used for creating environment to execute code . its also platform dependent and jre doesnt contain of tool like debugger, complier etc and it supports files for jvm and class libraries to run program in jvm

4.Difference between java Vs javac?
-> java : the java which will accept or execute bytecode of java and it take bytecode and run the program produce the output
ex : java sample (sample is name of the file )
-> javac : the javac is used to complie java programs . it will take file with extension (.java) as input and produce bytecode as output .

Collapse
 
ramalakshmimutyala97_967 profile image
Ramalakshmi

What is JRE? and Write down a use cases of it?
Java Runtime Environment (JRE) is an open-access software distribution that contains Java class library, specific tools, and JVM. JRE is one of the interrelated components in the Java Development Kit (JDK). It is the most common environment available on devices for running Java programs. Java source code is compiled and converted to Java bytecode. If you want to run this bytecode on any platform, you need JRE.
For software to execute a program, it needs an environment to run usually an operating system like Linux, Unix, Microsoft Windows, or MacOS. With no other supporting environments, programs are constrained by the capabilities of the OS and it’s resources (such as memory and program files).
A JRE acts as a translator and facilitator between the Java program and the OS

What is JDK? and Write down a use cases of it?
The Java Development Kit (JDK) is a software development environment used for developing Java applications and applets. It includes the Java Runtime Environment (JRE), an interpreter/loader (java), a compiler (javac), an archiver (jar), a documentation generator (javadoc) and other tools needed in Java development.
Use cases: Web Applications, Software Tools, Mobile Applications, Web Servers & Applications Servers

Difference between JDK Vs JRE?
JDK: JDK (Java Development Kit) is a software development kit that develops applications in Java. Along with JRE, the JDK also consists of various development tools (Java Debugger, JavaDoc, compilers, etc.) The JDK primarily assists in executing codes. It primarily functions in development.
JRE: Java Runtime Environment (JRE) is an implementation of JVM. It is a type of software package that provides class libraries of Java, JVM, and various other components for running the applications written in Java programming. JRE has a major responsibility for creating an environment for the execution of code.

Difference between java Vs javac?
The javac command is used to compile Java programs, it takes .java file as input and produces bytecode.
The java command is used to execute the bytecode of java. It takes byte code as input and runs it and produces the output

Collapse
 
saicharanpavan_698 profile image
saicharan

What is JRE? and Write down a use cases of it?

  • The Java Runtime Environment, or JRE, is a software layer that runs on top of a computer’s operating system software and provides the class libraries and other resources that a specific Java program needs to run. The JRE is the underlying technology that communicates between the Java program and the operating system. It acts as a translator and facilitator, providing all the resources so that once you write Java software, it runs on any operating system without further modifications.

What is JDK? and Write down a use cases of it?
-The Java Development Kit (JDK) is one of three core technology packages used in Java programming, along with the JVM (Java Virtual Machine) and the JRE (Java Runtime Environment). The Java Development Kit is a software development environment used for developing Java applications and applets. It includes the Java Runtime Environment an interpreter/loader (java), a compiler (javac), an archiver (jar), a documentation generator (javadoc) and other tools needed in Java development.

Difference between JDK Vs JRE?
JDK:

  • JDK (Java Development Kit) is a software development kit to develop applications in Java. In addition to JRE, JDK also contains number of development tools (compilers, JavaDoc, Java Debugger etc.).
  • JDK is primarily used for code execution and has prime functionality of development.
  • JDK is platform dependent i.e for different platforms different JDK required.
  • JDK = Java Runtime Environment (JRE) + Development tools.

JRE:

  • JRE (Java Runtime Environment) is the implementation of JVM and is defined as a software package that provides Java class libraries, along with Java Virtual Machine (JVM), and other components to run applications written in Java programming.
  • On other hand JRE is majorly responsible for creating environment for code execution.
  • Like of JDK JRE is also platform dependent.
  • On other hand JRE does not contain tools such as compiler or debugger etc. Rather it contains class libraries and other supporting files that JVM requires to run the program.
  • JRE = Java Virtual Machine (JVM) + Libraries to run the application.

Difference between java Vs javac?

  • The javac command is used to compile Java programs, it takes . java file as input and produces bytecode. Following is the syntax of this command. The java command is used to execute the bytecode of java