DEV Community

Supriya Kolhe
Supriya Kolhe

Posted on • Updated on

JAVA: Basics on JDK, JRE, JVM, IDE, Platform independence?

Q5. Features/Why use IDE?
Q6. How java is platform-independent?

1. JDK
-Java Development Kit
-JDK = Development_Tool(compiler etc.) + JRE
-to run any application development and execution of that application is needed, i.e. an environment is needed in order to execute the application which is provided by JDK
-provides and the environment in order to develop and execute an application

2. JRE
-Java Run-Time Environment
-JVM + Libraries
-provides an environment only to execute or run and environment

3. JVM
-Java Virtual Machine
-interpreter which execute java code line by line

4. IDE
-stands for Integrated Development Environment
-provides a programming environment that contains multiple things in a package such as code editor, compiler and debugger for software development. For example, NetBeans, Eclipse.
Alt Text

5. Why use IDE?
1-Syntax Highlighting: IDE which is aware of your programming languages is capable of providing visual cues to help code faster and in an efficient way, such as class keyword in java. It also makes code more readable and understandable.
2-Autocomplete: By focusing on keystrokes, IDE can help the programmer to detect the current and next keyword. For example, typing "Sy" will give you a list of functions, variables that can be used or are used in the current program.
3-Building executables automatically
4-Debugging: most IDE provides debugging tools that allow programmers to examine different variables and inspect their code. IDEs also provide hints while coding to prevent errors before compilation, such as ';' expected.
5-multi or single-purpose use: many IDEs support multiple languages, whereas there are specifically for single-purpose such as mobile development.
6-Integrations and plugins
-Some IDE also provide features like class browser, object browser and class hierarchy diagram where,
1: class browser - examine and reference the properties of an object-oriented class hierarchy
2: object browser - examine the objects instantiated in a running application program
3: class hierarchy diagram - allows the programmer to visualize the structure of object-oriented programming code

6. How java is platform-independent
Alt Text

-as the above picture shows, Abc. class cant be executed directly on any machine, for which it needs an interpreter in order to do it(JVM)

Please comment if you have any feedback or suggestions

Top comments (0)