0% found this document useful (0 votes)
7 views2 pages

Introduction Ofjava

Java is a high-level, object-oriented programming language developed by James Gosling in 1995, known for its principle 'Write Once, Run Anywhere'. Key features include platform independence, robustness, and support for multithreading and networking. Java has various editions for different applications, including Java SE for core development, Java EE for enterprise applications, and Java ME for mobile devices.

Uploaded by

hariomsoni0014
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

Introduction Ofjava

Java is a high-level, object-oriented programming language developed by James Gosling in 1995, known for its principle 'Write Once, Run Anywhere'. Key features include platform independence, robustness, and support for multithreading and networking. Java has various editions for different applications, including Java SE for core development, Java EE for enterprise applications, and Java ME for mobile devices.

Uploaded by

hariomsoni0014
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Introduction to Java

What is Java?

 Java is a high-level, object-oriented, class-based programming language.

 It was developed by James Gosling at Sun Microsystems in 1995 (now owned by


Oracle).

 Famous for its principle: “Write Once, Run Anywhere” (WORA).

Key Features of Java:


 Platform Independent – Programs run on any OS using the JVM (Java Virtual
Machine).
 Object-Oriented – Uses classes & objects (supports inheritance, polymorphism,
encapsulation, abstraction).
 Simple & Secure – Easier than C++ (no pointers for security).
 Robust – Strong memory management, exception handling.
 Multithreaded – Supports parallel execution.
 Distributed – Supports networking & RMI for distributed apps.
 Portable – Same code works on Windows, Linux, Mac.

Java Architecture:

 JDK (Java Development Kit) → For developers (contains compiler + tools).

 JRE (Java Runtime Environment) → For running Java apps (JVM + libraries).

 JVM (Java Virtual Machine) → Executes Java bytecode.

Process:

Source Code (.java) → Compiler (javac) → Bytecode (.class) → JVM → Machine Code

Java Editions:

 Java SE (Standard Edition) → Core Java (used for DSA, desktop apps).

 Java EE (Enterprise Edition) → For web & enterprise apps.

 Java ME (Micro Edition) → For embedded/mobile devices.

 JavaFX → For GUI applications.


SYNTAX:

FIRST PROGRAM:

--------------------------------------------------------------------------------------------------------------------------

public class Hello {

public static void main(String[] args) {

[Link]("Hello, Java!");

--------------------------------------------------------------------------------------------------------------------------

Where Java is Used?

 Web Applications (Spring, Hibernate)

 Android Development

 Big Data (Hadoop, Spark)

 Desktop Apps

 Game Development

 Cloud & Enterprise Applications

INSTALLATION OF JAVA:

DOWNLOAD THIS FILE AND INSTALL IT:

[Link]

You might also like