JAVA PROGRAMMING LANGUAGE
JAVA PROGRAMMING LANGUAGE
*Introduction of JAVA :
JAVA Programming language is a platform-independent programming language. First JVM executes the bytecode generated by the help of compiler and this is running your input code.
eventually, each operating system has a different type of JVM, but the process of execution of bytecode is the same across all types of platforms. That's why JAVA programming language called a platform-independent programming language. This is some basic introduction of java programming language.
A Diagram of Platform-independent Programming Lang
* Generation of Byte-Code :
A Diagram of Generation of Byte-Code
Some features of JAVA programming language:
*Robust(Reliable programming language):
JAVA programming language is a reliable programming language. It's early checking for possible errors. The compiler is the best example. There are some more things like Garbage collection, Exception, and Memory allocation.
*Secure:
Like 'c' we don't have pointers in a java programming language. It runs like a virtual machine. Security is the most efficient feature of java programming language.
*Distributed:
In java programming language work on RMI(Remote Method Invocation) and EJB application. In a distributed along with connected servers using the Internet.
*Multithreading:
It allows concurrent execution and utilized based on your CPU memory. This process is known as the multithreading process in java programming language.
*Portability:
The code is written once and run anywhere, that's the platform-independent feature of java programming language. This is known as the portability feature.
*JVM(Java Virtual Machine) :
In this programming language, all things generally referred to as JVM. The compiler [javac] converts [.java] file to byte-code which is [.class] file.
[javac] - [.java] - [.class]
This is the process done by the JVM. JVM executes the byte-code generated by the compiler, Which can be run in any platform like Windows, Linux, Mac operating system. Create a program by the programmer and compile then you can run anywhere.JVM executes the byte-code generated by the compiler and this is running your programming code. Resides in a real machine (your device) and it's understanding machine language which is byte-code.JVM executes the code generated by java compiler.JVM is the one that makes java a platform-independent. Each operating system has different JVM's but they all are produce same outcome. This means code generated in a window can run in Linux and Mac operating system machines.
*JVM Architecture:
A Diagram of JVM Architecture
*ClassLoader: It reads the class file and save the byte-code in the method area.
*Method Area: This holds the class level information of each ( .class file).
*Heap: Heap is a part of JVM memory objects that are allocated.
*Stack: It is used to store temporary variables.
*PC Register: It holds which one going to execute handled by a thread(Each thread has a separate PC Register.)
*Native Method Stack: It access the runtime data areas of UM.
*Native Method Interface: Enables the java code to call or be called by the native application, like hardware and operating system.
*Garbage Collection: Classes instances Explicitly created by java code, once it's done its job destroyed by GC for memory management.
*JDK(Java Development Kit) :
We all sean in many times "JDK", let's talk about that. This is a complete kit contain all parts of the software, which is used in java programming language. The main key features of the JDK is - Compile time, Runtime, Java Doc, Java debugger. In order to create a compile and run java programming code, we need JDK installed on your device.
*JRE(JAVA Runtime Environment) :
Java Runtime Environment is part of "JDK"(Java Development Kit), Which means that JDK includes JRE as well. Once you have only need to run a java programming code on your computer, you would only need "JRE"(Java Runtime Environment) in your computer device.
* JVM Vs JRE Vs JDK :
In JDK (The container holds the JRE along with development tools).
In JRE (It runs the program using class and libraries by JRE).
CORE JAVA PROGRAMMING
Gadgets for Education Purpose
Brilliant ....
ReplyDeleteThank-you Mam!!!
DeleteExcellent👍👍👍👍
ReplyDeleteThank you!!!!
DeleteMind blowing
ReplyDeleteThank you Bro!!!
DeleteAmazing content !!
ReplyDeleteThank-you Mam!!!
DeleteFabulous dear ,..I love this content too much ..this content help me alot.For freshers this is too good.
ReplyDeleteThank-you Dear!!
Deleteexcellent
ReplyDelete