Skip to content

What is Java?

Java is both a programming language and a platform. Java's WRITE ONCE and RUN ANYWHERE is just too strong. Java is sleeker, faster, and much more powerful today.

Gopi Gorantala
Gopi Gorantala
2 min read
What is Java?
Getting Started With Java

Table of Contents

Short answer

Java is a popular programming language for developing various software applications, from web and mobile applications to desktop applications and games.

Java was first introduced in 1995 by Sun Microsystems (now owned by Oracle Corporation) and has since become one of the world's most widely used programming languages.

Java is an object-oriented, functional, concurrent, secured, and general-purpose computer programming language.

Object-oriented programming means 4 things:

  1. Abstraction,
  2. Encapsulation,
  3. Inheritance, and
  4. Polymorphism.

Java is a statistically typed language, meaning that the type of any variable you create or receive is known at compiled time. Even if you define with var, the compiler will guess the type of this variable for you.

More detailed answer

Before Java, its name was Oak, and then James Gosling and his team changed it to Java.

Java's WRITE ONCE and RUN ANYWHERE, is just too strong.

Java is sleeker, faster, and much more powerful today.

Simple hello world example

A simple Java program that prints "Hello, world" on the console.

class HelloWorld {
	public static void main(String[] args) {
    	System.out.println("Hello, world");
    }
}

What can we build using Java?

Java has a JVM (Java virtual machine) that manages application memory and provides a portable execution environment for Java-based applications.

If JVM can run on a machine, you can write and run Java code there.

Note: If a refrigerator can run JVM init. You can definitely write Java code and run on it.

We can build the following applications using Java.

  1. Desktop applications for Mac, Linux, Windows, etc.
  2. Web applications (google.com, spring.io, oracle.com, etc.).
  3. Enterprise applications (banking software).
  4. Mobile-based applications for Android.
  5. Robotics.
  6. Games.
  7. Console applications.
  8. Augmented reality (AR) and Virtual reality (VR) apps.

Java Features

  1. Simple
  2. Object Oriented
  3. Portable
  4. Platform independent
  5. Secured
  6. Robust
  7. Architecture neutral
  8. High performance
  9. Multithreaded
  10. Distributed
  11. Dynamic

Java takes you to new places. From its humble release to the public as version 1.02, Java influenced many programmers with its syntax, object-oriented features, memory management, and best portability.

Java's vast community backs and releases newer versions every six months.

Some of the significant LTS (Long-term support) releases that developers are currently using are:

  1. Java 8 (Most of them still run this version)
  2. Java 11
  3. Java 17

How many devices run Java

  • 1.1 billion desktops run Java
  • 930 million Java runtime environment downloads each year.
  • 3 billion mobile phones run Java.
  • 31 times more Java phones ship each year than Apple and Android combined.
  • 100% Blu-ray players run Java.
  • 1.4 billion Java Cards are manufactured each year.
  • Setup boxes, printers, webcams, car navigation systems, parking payment systems, and more.
  1. Youtube channel - https://www.youtube.com/@java/featured
  2. Websites - https://java.com, https://dev.java/
  3. Java Champions - https://github.com/aalmiray/java-champions

JavaJava Interview Handbook

Gopi Gorantala Twitter

Gopi is an Engineering Manager with over 14 years of extensive expertise in Java-based applications. He resides in Europe and specializes in designing and scaling high-performance applications.

Comments


Related Posts

Members Public

Spring Boot Hello World Tutorial with Lombok and H2 Database – Quick Start for Beginners

Learn how to create a Hello World Spring Boot application using Lombok for cleaner code and the H2 in-memory database for rapid development. This step-by-step guide includes annotations, project setup, REST API, H2 console access, and more to kickstart your Spring Boot journey.

Spring Boot Hello World Tutorial with Lombok and H2 Database – Quick Start for Beginners
Members Public

NoSuchBeanDefinitionException: The Most Common Spring Bean Error

Learn how to fix NoSuchBeanDefinitionException in Spring Boot with clear examples and best practices for dependency injection, package scanning, and bean registration.

NoSuchBeanDefinitionException for a missing bean in the ApplicationContext.
Members Public

BeanCurrentlyInCreationException: Circular Dependencies in Spring

Spring Boot’s DI can backfire with the dreaded BeanCurrentlyInCreationException, signaling an unresolvable circular dependency. Learn why cycles occur, how they breach SOLID principles, and three fixes—refactor to break loops, use @Lazy injection, and static @Bean factory methods—to restore startup.

Circular dependencies in Spring causing a BeanCurrentlyInCreationException