Java Programming Language

Last Updated : 11 Jan, 2024

Complete Java Tutorial

Java is one of the most popular and widely used programming languages.

  • Java has been one of the most popular programming languages for many years.
  • Java is Object Oriented. However, it is not considered as pure object-oriented as it provides support for primitive data types (like int, char, etc)
  • The Java codes are first compiled into byte code (machine-independent code). Then the byte code runs on Java Virtual Machine (JVM) regardless of the underlying architecture.
  • Java syntax is similar to C/C++. But Java does not provide low-level programming functionalities like pointers. Also, Java codes are always written in the form of classes and objects.
  • Java is used in all kinds of applications like Mobile Applications (Android is Java-based), desktop applications, web applications, client-server applications, enterprise applications, and many more.
  • When compared with C++, Java codes are generally more maintainable because Java does not allow many things which may lead to bad/inefficient programming if used incorrectly. For example, non-primitives are always references in Java. So we cannot pass large objects (like we can do in C++) to functions, we always pass references in Java. One more example, since there are no pointers, bad memory access is also not possible.
  • When compared with Python, Java kind of fits between C++ and Python. The programs are written in Java typically run faster than corresponding Python programs and slower than C++. Like C++, Java does static type checking, but Python does not.


Simple Hello World Program :

// A Java program to print "Hello World" 
public class GFG { 
    public static void main(String args[]) 
    { 
        System.out.println("Hello World"); 
    } 
}

Output:

Hello World

Recent Articles on Java

Java Programs – Basics to Advanced

Overview, Basics, Input/Output, Flow Control, Operators, Strings, Arrays, OOPs Concepts, Inheritance, Abstraction, Encapsulation, Polymorphism, Constructors, Methods, Interfaces, Wrapper Classes, Keywords, Access Modifiers, Memory Allocation, Classes, Packages, Collection Framework, List, Queue, Map, Set, Exception Handling, Multithreading, Synchronization, File Handling, Regex, Java IO, Networking, Java 8 Features, Date & Time, JDBC, Miscellaneous, Interview Questions

Overview of Java

Basics of Java

Input/Output in Java

Flow Control in Java

Operators in Java

Strings in Java

Arrays in Java

OOPS in Java

Inheritance in Java

Abstraction in Java

Encapsulation in Java

Polymorphism in Java

Constructors in Java

Methods in Java

Interfaces in Java

Wrapper Classes in Java

Keywords in Java

Access Modifiers in Java

Memory Allocation in Java

Classes of Java

Packages in Java

Collection Framework

List

Queue

Map

Set

Exception Handling in Java

Multithreading in Java

Synchronization in Java

File Handling in Java

Java Regex

Java IO

Java Networking

Java SE 8 Features

Java Date & Time

Java JDBC

Java Miscellaneous

Interview Questions on Java


My Personal Notes arrow_drop_up

Share your thoughts in the comments

Similar Reads

R Programming Language Free Course
R is a free open-source programming language developed for statistical computing and graphics. It simplifies the process for data analysts and scientists to extract valuable insights from complex datasets.
4 min read
Free Java Course Online for Beginners - Java Programming
Java is a popular programming language that has been around for over 25 years¹. If you're interested in learning Java. Explore the essentials of Java programming in our free beginner Java course. Get a solid grasp of Java's fundamentals, including syntax, functions, and arrays, and kickstart your Java programming journey.
4 min read
Free C Programming Online Course for Beginners
C is a general-purpose, procedural computer programming language developed by Dennis Ritchie between 1969 and 1973 at Bell Labs. It is one of the most widely used programming languages in the world, and is the basis for many other programming languages, including C++, Java, and JavaScript.
3 min read
C++ Programming Course
C++ is the most popular programming language developed by Bjarne Strounstrup in 1979. It is used in general-purpose and Object-Oriented programming.
4 min read
Complete Guide to Dynamic Programming
In this complete guide to Dynamic Programming, you will learn about the basics of Dynamic Programming, how to get started with Dynamic Programming, learning, strategy, resources, problems, and much more.
3 min read
Fork Java Contest Certificates
Abhishek Rajput Ashish Juyal Chikka Udaya Sai Dhirendra Gurjar Madhu Priya Pannem Pavan Siddardha Rohan Mukhija Sanjeevkumar B Naik Sourav Dutta Vishal Malviya
1 min read
Natural Language Processing(NLP) VS Programming Language
In the world of computers, there are mainly two kinds of languages: Natural Language Processing (NLP) and Programming Languages. NLP is all about understanding human language while programming languages help us to tell computers what to do. But as technology grows, these two areas are starting to overlap in cool ways, changing how we interact with
4 min read
CIL or MSIL | Microsoft Intermediate Language or Common Intermediate Language
The Microsoft Intermediate Language (MSIL), also known as the Common Intermediate Language (CIL) is a set of instructions that are platform independent and are generated by the language-specific compiler from the source code. The MSIL is platform independent and consequently, it can be executed on any of the Common Language Infrastructure supported
3 min read
Difference Between Machine Language and Assembly Language
Machine language is the low level programming language. Machine language can only be represented by 0s and 1s. In earlier when we have to create a picture or show data on the screen of the computer then it is very difficult to draw using only binary digits(0s and 1s). For example: To write 120 in the computer system its representation is 1111000. S
2 min read
Difference Between Assembly Language And Machine Language
Machine language is the low-level programming language. It can only be represented by 0s and 1s. Earlier when we have to create pictures or show data on the screen of the computer then it is very difficult to draw using only binary digits(0s and 1s).For example: To write 120 in the computer system its representation is 1111000. So it is very diffic
2 min read