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 “”.
  2. Now Compile the program which converts 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 ‘’ 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.

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 *

Site Statistics

  • Users online: 0 
  • Visitors today : 2
  • Page views today : 2
  • Total visitors : 51,167
  • Total page view: 70,434

   YouTube ChannelQuora

            Ashok Kumar is working in an IT Company as a QA Consultant. He has started his career as a Test Trainee in manual testing in August 2010. Then he moves towards the automation testing after 4 years. He started learning JAVA and Selenium by self to get the knowledge of automation.

       While learning these tools and working on multiple projects, he found that sometimes people get stuck in live scenarios in their project and they have to do lots of RnD to get out of it. So he decided to start blogging only for such scenarios, where anyone facing any problem in their project, can ask any question or give a solution or you can say an alternate solution to achieve the goal successfully.

Later on, he observed that some people want to learn Java but they have few questions in their mind like how to start Java, whether we should go for the online or offline course. So he started writing tutorials on Java, Jira, Selenium, Excel etc.