Java overview

Let’s learn java overview.

Java overview

History of java

Java was developed by James Gosling at Sun Microsystems Inc. and released in 1995 as core component of Sun Microsystems.

Initially it was named as Oak. Because there was an Oak tree outside James Gosling office.

Later it was named Green, Java coffee and finally to java.

Also read – inheritance in java

It is one of the widely used computer language and it’s latest release is Java SE 8.

Due to its vast popularity and diverse configuration it has been built to suit different platforms like J2EE for Enterprise Applications, J2ME for Mobile Applications.

What is java?

Java is

  • dynamic. It’s an object oriented programming language.
  • architecture-neutral. Because applications written in java are convenient across many platforms.
  • simple, fast, reliable, secure, portable and robust.
  • enables high performance with the use of Just-In-Time compilers.
  • has its own Java Runtime Environment(JRE) and Application Programming Interface(API).
  • With multithreaded feature users can interact multiple graphical applications that have high performance. Java supports multithreading.
  • adaptable to changing environment.
  • secure. JRE has built-in protection against virus.

High-level programming language

So, what does it mean to be a high-level programming language??

Java code is WORA, “Write Once Run Anywhere”.

This means, java code that runs on one platform do not need recompilation on another platform.

This means that the java source code is written in plain text or human readable format.

Java has a set of rules on how it should be written and this is known as syntax.

Java can be extended easily since it is based on Object model and everything is an Object.

Also read – features of java

As mentioned before, part of simplicity comes from the fact that it’s a high-level programming language which makes easy to read and understand.

There are also a lot of predefined libraries in java that can be used.

This allows developers to quickly write and leverage this large library.

For example, these libraries allow you to do fairly common tasks like manipulation.

So, we do not have to worry about the complexities of manipulation.

Some of the other benefits that java has over other languages such as C language is that developers don’t have to worry about memory management.

Also read – garbage collection in java

Anything you create in your code will take up memory and with java you don’t have to manually allocate memory yourself.

Java automatically reserve amount of memory for application and also automatically get rid of unused memory thanks to its built-in automatic garbage collector.

Code written on one machine is guaranteed to work on any other machine that run java.

This allows developer to focus on code. Let’s understand it in detail.

Java files are saved with dot java (.java) extension.

These files are then compiled to dot class (.class) file by “javac” compiler.

java overview

This dot class file do not contain code. It is not compiled to platform specific machine, rather into platform independent bytecode.

This file actually contains byte code which you can think of as a language that only the JVM can understand or in other words machine language of JVM.

java overview

Then instance of JVM java launcher tool runs application.

This dot class files are capable of running on MS Windows or Mac OS.

Because JVM is available on different OS. Then byte code is distributed over the web and interpreted by Java Virtual Machine on platform it is being run on.

You can think of java compiler as a translator between java code and JVM as the translator between compiled code and machine.

Also read – java string trim() method

This provides great flexibility for developers because if code compiles and runs on one machine it will compile and run on any other machine.

Bytecode is translated on the fly to native machine and is not stored anywhere.

Java is an object oriented programming language. This is usually called as OOP for short.

In OOP we put related state and behavior into entities known as objects.

This is very similar to real world where you can think of things like pulsar bike or Audi car as objects and they have states like engine on and engine off and behavior like move and stop etc,.

These objects can also communicate with each other.

This allows objects to interact with each other and leverage each other related functions that’s unique to that class.


Overview of java: Types of java application

  • Web Application
  • Enterprise Application
  • Mobile Application
  • Standalone Application

Java is used in

  • Games
  • Desktop applications
  • Web applications
  • Robotics
  • Widely in android mobile
  • Robotics
  • Adobe Acrobat

Here are versions of java.

  • JDK 1.0 (January 21, 1996)
  • JDK 1.1 (February 19, 1997)
  • J2SE 1.2 (December 8, 1998)
  • J2SE 1.3 (May 8, 2000)
  • J2SE 1.4 (February 6, 2002)
  • J2SE 5.0 (September 30, 2004)
  • Java SE 6 (December 11, 2006)
  • Java SE 7 (July 28, 2011)
  • Java SE 8 (March 18, 2014)

This is all about java overview for interview. In this post I have covered features of java, history of java and overview of java.

Hope this post would be helpful for interview.