0% found this document useful (0 votes)
243 views8 pages

Java Programming Tutorial for Beginners

This document provides an overview of the Java programming language. It discusses that Java is an object-oriented language created by Sun Microsystems in 1995. It also provides examples of applications that use Java, such as desktop applications, web applications, enterprise applications, and mobile applications. The tutorial also covers Java platforms/editions and prerequisites for learning Java.

Uploaded by

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

Java Programming Tutorial for Beginners

This document provides an overview of the Java programming language. It discusses that Java is an object-oriented language created by Sun Microsystems in 1995. It also provides examples of applications that use Java, such as desktop applications, web applications, enterprise applications, and mobile applications. The tutorial also covers Java platforms/editions and prerequisites for learning Java.

Uploaded by

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

9/2/2021 Java Tutorial | Learn Java Programming - javatpoint

Home Java Programs OOPs String Exception Multithreading


ADVERTISEMENT BY ADRECOVER

[Link] 1/8
9/2/2021 Java Tutorial | Learn Java Programming - javatpoint

Java Tutorial

Our core Java programming tutorial is designed for students and working professionals. Java is an
object-oriented, class-based, concurrent, secured and general-purpose computer-programming
language. It is a widely used robust technology.

What is Java?
Java is a programming language and a platform. Java is a high level, robust, object-oriented and
secure programming language.

Java was developed by Sun Microsystems (which is now the subsidiary of Oracle) in the year 1995.
James Gosling is known as the father of Java. Before Java, its name was Oak. Since Oak was already
a registered company, so James Gosling and his team changed the name from Oak to Java.

Platform: Any hardware or software environment in which a program runs, is known as a platform.
Since Java has a runtime environment (JRE) and API, it is called a platform.

Java Example
Let's have a quick look at Java programming example. A detailed description of Hello Java example
is available in next page.

[Link]

class Simple{  
    public static void main(String args[]){  
     [Link]("Hello Java");  
    }  
}  

Test it Now

[Link] 2/8
9/2/2021 Java Tutorial | Learn Java Programming - javatpoint

Application
According to Sun, 3 billion devices run Java. There are many devices where Java is currently used.
Some of them are as follows:

1. Desktop Applications such as acrobat reader, media player, antivirus, etc.

2. Web Applications such as [Link], [Link], etc.

3. Enterprise Applications such as banking applications.

4. Mobile

5. Embedded System

6. Smart Card

7. Robotics

8. Games, etc.

Types of Java Applications


There are mainly 4 types of applications that can be created using Java programming:

1) Standalone Application

Standalone applications are also known as desktop applications or window-based applications.


These are traditional software that we need to install on every machine. Examples of standalone
application are Media player, antivirus, etc. AWT and Swing are used in Java for creating standalone
applications.

2) Web Application

An application that runs on the server side and creates a dynamic page is called a web application.
Currently, Servlet, JSP, Struts, Spring, Hibernate, JSF, etc. technologies are used for creating web
applications in Java.

3) Enterprise Application

An application that is distributed in nature, such as banking applications, etc. is called an enterprise
application. It has advantages like high-level security, load balancing, and clustering. In Java, EJB is
used for creating enterprise applications.

4) Mobile Application

[Link] 3/8
9/2/2021 Java Tutorial | Learn Java Programming - javatpoint

An application which is created for mobile devices is called a mobile application. Currently, Android
and Java ME are used for creating mobile applications.

Java Platforms / Editions


There are 4 platforms or editions of Java:

1) Java SE (Java Standard Edition)

It is a Java programming platform. It includes Java programming APIs such as [Link], [Link],
[Link], [Link], [Link], [Link] etc. It includes core topics like OOPs, String, Regex, Exception,
Inner classes, Multithreading, I/O Stream, Networking, AWT, Swing, Reflection, Collection, etc.

2) Java EE (Java Enterprise Edition)

It is an enterprise platform that is mainly used to develop web and enterprise applications. It is built
on top of the Java SE platform. It includes topics like Servlet, JSP, Web Services, EJB, JPA, etc.

3) Java ME (Java Micro Edition)

It is a micro platform that is dedicated to mobile applications.

4) JavaFX

It is used to develop rich internet applications. It uses a lightweight user interface API.

Prerequisite
To learn Java, you must have the basic knowledge of C/C++ programming language.

Audience
Our Java programming tutorial is designed to help beginners and professionals.

Problem
We assure that you will not find any problem in this Java tutorial. However, if there is any mistake,
please post the problem in the contact form.

[Link] 4/8
9/2/2021 Java Tutorial | Learn Java Programming - javatpoint

Do You Know?

What is the difference between JRE and JVM?

What is the purpose of JIT compiler?

Can we save the java source file without any name?

Why java uses the concept of Unicode system?

What will we learn in Basics of Java?

History of Java

Features of Java

Hello Java Program

Program Internal

How to set path?

Difference between JDK,JRE and JVM

Internal Details of JVM

Variable and Data Type

Unicode System

Operators

Next →

ADVERTISEMENT BY ADRECOVER

[Link] 5/8
9/2/2021 Java Tutorial | Learn Java Programming - javatpoint

Youtube
For Videos Join Our Youtube Channel: Join Now

Feedback

Send your Feedback to feedback@[Link]

Help Others, Please Share

Learn Latest Tutorials

digital elasticsearch entity Firewall tutorial


marketing tutorial tutorial framework
Firewall
tutorial
Digital Marketing Elasticsearch
Entity Framework

Functional Google Colab Graph Theory Groovy tutorial


Programming tutorial tutorial
Groovy
tutorial
Google Colab Graph Theory
Functional
Programming

Group Informatica Ionic tutorial ITIL tutorial


Discussion tutorial
Ionic ITIL
tutorial
Informatica
Group Discussion

IOS angular deep learning


Development material tutorial tutorial
tutorial
Angular Material Deep Learning
IOS with Swift

Preparation

Aptitude Logical Verbal Ability Interview


Reasoning Questions
Aptitude Verbal Ability
[Link] 6/8
9/2/2021 Java Tutorial | Learn Java Programming - javatpoint

Reasoning Interview Questions

Company
Interview
Questions
Company Questions

Trending Technologies

Artificial AWS Tutorial Selenium Cloud


Intelligence tutorial Computing
AWS
Tutorial tutorial
Selenium
Artificial Cloud Computing
Intelligence

Hadoop tutorial ReactJS Data Science Angular 7


Tutorial Tutorial Tutorial
Hadoop
ReactJS Data Science Angular 7

Blockchain Git Tutorial Machine DevOps


Tutorial Learning Tutorial Tutorial
Git
Blockchain Machine Learning DevOps

[Link] / MCA

DBMS tutorial Data Structures DAA tutorial Operating


tutorial System tutorial
DBMS DAA
Data Structures Operating System

Computer Compiler Computer Discrete


Network tutorial Design tutorial Organization and Mathematics
Architecture Tutorial
Computer Network Compiler Design
Computer Discrete
Organization Mathematics

[Link] 7/8
9/2/2021 Java Tutorial | Learn Java Programming - javatpoint

Ethical Hacking Computer Software html tutorial


Tutorial Graphics Tutorial Engineering
Web Technology
Tutorial
Ethical Hacking Computer Graphics
Software
Engineering

Cyber Security Automata C Language C++ tutorial


tutorial Tutorial tutorial
C++
Cyber Security Automata C Programming

Java tutorial .Net Python tutorial List of


Framework Programs
Java Python
tutorial
Programs
.Net

Control Data Mining Data


Systems tutorial Tutorial Warehouse
Tutorial
Control System Data Mining
Data Warehouse

ADVERTISEMENT BY ADRECOVER

[Link] 8/8

Common questions

Powered by AI

Java APIs provide a comprehensive set of libraries for diverse functionalities like networking, I/O streams, and database connections. These APIs allow developers to build complex applications efficiently by using prebuilt components, which enhances productivity and promotes consistent development practices. The extensive API support also makes Java adaptable to changing technological requirements, contributing to its widespread use .

Java's object-oriented nature promotes modularity and reusability through encapsulation, inheritance, and polymorphism. Encapsulation allows for defining clear interfaces and hiding implementation details, making code modular. Inheritance facilitates code reuse by allowing new classes to inherit existing functionality. Polymorphism enables applying a single interface to entities of different types, enhancing flexibility and reusability. These principles aid in developing complex software systems that are manageable and scalable .

Java is highly suitable for mobile applications, particularly with Android, due to the Java ME (Micro Edition), which provides APIs designed for mobile device constraints. Java's platform independence enables applications to run on various devices without modification, contributing to its popularity in mobile development. However, languages like Kotlin or Swift may offer more modern language features and better integration with certain platforms, posing competition to Java's dominance in mobile development .

Java's multithreading capability allows concurrent execution of two or more threads, increasing resource utilization and application performance. This is particularly beneficial for heavy operations like server-side applications and GUIs, where responsiveness and throughput are crucial. By dividing tasks among multiple threads, applications can perform more efficiently, leveraging modern multi-core processors to execute multiple operations in parallel .

Java's use of the Unicode system allows it to support a wide range of characters and symbols from different languages around the world, making it ideal for international applications. This enhances Java's operability and acceptability across different regions, supporting global software solutions by ensuring that applications can handle diverse text and data formats .

Java SE (Standard Edition) is used for general-purpose programming and includes core components like OOPs, strings, and multithreading. Java EE (Enterprise Edition) builds on Java SE and is intended for developing web and enterprise applications, offering additional tools like Servlets and EJB. Java ME (Micro Edition) is tailored for mobile applications, providing APIs suitable for mobile features. Each edition's specialized tools and functionalities cater to different types of application development .

Java is characterized as a general-purpose programming language because it is object-oriented, class-based, concurrent, and secure. It is used in a variety of applications, from desktop and web to enterprise and mobile applications, demonstrating its versatility and robustness .

Java's garbage collection automates memory management by reclaiming unused objects, freeing developers from manual memory allocation and deallocation processes. This reduces memory leaks and improves performance by optimizing resource management. However, garbage collection can introduce pauses, known as 'stop-the-world' events, impacting real-time application performance. Efficient garbage collection strategies are essential to balance performance and resource utilization .

Java's security model is robust due to its use of a combination of the Java Virtual Machine (JVM) and a set of APIs that include secure classloading, bytecode verification, and a security manager that prevents unauthorized access to resources. This is critical for enterprise applications that require high-level security for handling sensitive data, load balancing, and clustering in distributed environments .

Java's platform independence is largely due to its runtime environment (JRE), which allows Java applications to run on any device with a compatible JRE installed. This has significantly contributed to its adoption across diverse domains such as desktop applications, enterprise systems, mobile applications, and embedded devices, as developers can ensure their software runs consistently across different systems without modification .

(https://www.googleadservices.com/pagead/aclk?sa=L&ai=CzaOP00AwYau1JM6W4t4P08K2kAGr0N7yZIux8LSiDvHXx-SZGhABIMuJ1iNg5crlg7QOo
(https://training.javatpoint.com/)9/2/2021
Java Tutorial | Learn Java Programming - javatpoint
https://www.javatpoint.com/ja
9/2/2021
Java Tutorial | Learn Java Programming - javatpoint
https://www.javatpoint.com/java-tutorial
3/8
Application
Accordi
9/2/2021
Java Tutorial | Learn Java Programming - javatpoint
https://www.javatpoint.com/java-tutorial
4/8
An application whic
(https://www.googleadservices.com/pagead/aclk?sa=L&ai=CWdvE00AwYYTYK_7DrtoPnayVMKvQ3vJk-7LwtKIO0dvH5JkaEAEg5pfWJWDlyuWDtA6gA
(https://twitter.com/share?url=https://www.javatpoint.com/java-tutorial) (https://www.facebook.com/sharer.php?u=https://www.
(https://www.javatpoint.com/verbal-ability) (https://www.javatpoint.com/aptitude/quantitative)9/2/2021
Java Tutorial | Learn
(https://www.googleadservices.com/pagead/aclk?sa=L&ai=C2PsL00AwYaz3Moq6yAOV-56oDqvQ3vJk88zwtKIO8dfH5JkaEAEgy4nWI2DlyuWDtA6gA

You might also like