Basic Java – 1 || Understand Java before start learning JAVA.

     We have to first understand JAVA before start learning. JAVA IS A PURE OBJECT-ORIENTED PROGRAMMING LANGUAGE. In this blog, I will focus only on main points, rest of story would be available on the web.

Brief Introduction to Java
  1. JAVA was initially developed by Sun Microsystems Inc in 1991, later acquired by Oracle Corporation.
  2. Writing, compiling and debugging a program is easy in Java.
  3. It helps to create modular programs and reusable code.
  4. Java is open source programming language.
  5. Compile Once and Run Forever
Architecture of JDK(Java Development Kit)
JAVA Development Kit
JAVA Development Kit
Related Links:

OOPs Concept:

Java Question And Answer:

A simple process of running a java program
  1. First of all, write an input program and save it with name “Test.java”.
  2. Now Compile the program which converts Test.java file into “Test.class”.
  3. A class file is a bytecode file which contains commands in binary form.
  4. Now Execute the bytecode which will convert bytecode to Machine Level Language.
  5. This Machine Level Language instructs the Operating system to execute a command written in ‘Test.java’ file and generates Output.

JVM(Java Virtual Machine) provides a secured sandboxed environment which executes the bytecode and instruction have been given to the Operating system.

JRE(Java Runtime Environment) is the combination of JVM and Java class library files which implements the JVM to execute bytecode on a machine.

JDK(Java Development Kit) provides entire suite to create a project via any development tool, compile a program, and JRE.

Features of Java

1. Platform Independent Programming language. This can be achieved by creating a runnable jar file of java programs.This jar file can be run on multiple machines which supports JVM/JDK/JRE.
Note that programming language is platform independent but JVM/JDK/JRE are platform dependent. There are multiple versions of JVM/JDK/JRE depending upon the OS(MAC/Windows/Linux) 64-bit, 32-bit.

2. Pure Object Oriented Programming language as it supports Abstraction, Encapsulation, Inheritance, Polymorphism
3. Simple language because it does not have complex features like Operator overloading, Multiple inheritances, pointers and Explicit memory allocation.
4. Robust Language as it handles both Memory Management Mistakes and Runtime Errors.
   Memory Management Mistakes overcome by Garbage Collection(Automatic allocation and deallocation of memory when objects not in use.)
   Runtime Errors: By exception handling procedures.
5. Secure: JVM provides a virtual environment to run java programs in a secured sandbox.

6. Distributed: Objects on one JVM (java virtual machine) can execute procedures on a remote JVM.
7. Multithreading: Can perform multiple tasks simultaneously.

2350total visits,4visits today

4 thoughts on “Basic Java – 1 || Understand Java before start learning JAVA.”

  1. hi sir,
    i think jdk, jvm and jre k bare me thoda aur description hona chahiye tha and rest is easily understanble easily. simple and lucid language

    1. Hi Aamir,
      As I already told you that I am writing these blogs for all the novice users, who wants to learn java. Still, if you want I will definitely post a blog on these topics as well in future.

  2. Hi Ashok,
    What do you mean by Pure Object Oriented Programming language? Can you elaborate that what is Pure Object Oriented Programming and why JAVA is suitable for us?

Leave a Reply

Your email address will not be published. Required fields are marked *