3/22/25, 6:17 PM Java Tutorial | Learn Java Programming - Tpoint Tech
Classes and Objects in Java
Methods in Java
Constructors in Java
static keyword in Java
this Keyword in Java
AD
next →
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 a 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 the Java programming example. A detailed description of the
Hello World! example is available on the next page.
Hey, Compile and Run Java
public class Main{
public static void main(String args[]){
System.out.println("Hello, World!");
https://www.tpointtech.com/java-tutorial 2/25
3/22/25, 6:17 PM Java Tutorial | Learn Java Programming - Tpoint Tech
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 applications are Media players, 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
An application that is created for mobile devices is called a mobile application. Currently,
Android and Java ME are used for creating mobile applications.
AD
Java Platforms / Editions
There are four platforms or editions of Java:
1) Java SE (Java Standard Edition)
It is a Java programming platform. It includes Java programming APIs such as java.lang,
java.io, java.net, java.util, java.sql, java.math 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.
https://www.tpointtech.com/java-tutorial 4/25
3/22/25, 6:17 PM Java Tutorial | Learn Java Programming - Tpoint Tech
3. Java is a high-level, general-purpose, object-based programming language.
4. Java is a high-level, general-purpose, native programming language.
Show Answer Workspace
2) Which of the following Java editions is suitable for the development of web
applications?
1. Java ME
2. Java SE
3. Java EE
4. Java FX
Show Answer Workspace
3) Java programming language is also known as…….?
1. KAO
2. OKA
3. AOK
4. OAK
Show Answer Workspace
4) Who invented Java Programming?
1. Guido van Rossum
2. James Gosling
3. Dennis Ritchie
4. Bjarne Stroustrup
Show Answer Workspace
5) Which component is used to compile, debug and execute the Java programs?
1. JRE
https://www.tpointtech.com/java-tutorial 6/25
3/22/25, 6:17 PM Java Tutorial | Learn Java Programming - Tpoint Tech
Java Control Statements
Java Control Statements
Java If-else
Java Switch
Java For Loop
Java While Loop
Java Do While Loop
Java Break
Java Continue
Java Comments
Java Programs
Java Object Class
Java OOPs Concepts
Java Naming Conventions
Object and Class in Java
Constructor in Java
static keyword in Java
this keyword in Java
Methods in Java
Methods in Java
How to Call a Method in Java
Recursion in Java
Call By Value and Call By Reference in Java
Java Inheritance
Inheritance(IS-A) in Java
Aggregation(HAS-A) in Java
Java Polymorphism
Method Overloading in Java
Method Overriding in Java
Java Covariant Return Type
Java super keyword
Java Instance Initializer block
Java final keyword
https://www.tpointtech.com/java-tutorial 8/25
3/22/25, 6:17 PM Java Tutorial | Learn Java Programming - Tpoint Tech
Java StringBuffer class
Java StringBuilder class
String vs StringBuffer
StringBuffer vs Builder
Creating Immutable class in Java
Java toString method
StringTokenizer class in Java
Java String FAQs
Java Regex
Java Regex
Java Exception Handling
Java Exceptions
Java Try-catch block
Java Multiple Catch Block
Java Nested try
Java Finally Block
Java Throw Keyword
Java Exception Propagation
Java Throws Keyword
Java Throw vs Throws
Final vs Finally vs Finalize
Exception Handling with Method Overriding
Java Custom Exceptions
Java Inner Class
Java inner class
Member Inner class
Anonymous Inner class
Local Inner class
static nested class
Nested Interface
Java Multithreading
Multithreading in Java
Life Cycle of a Thread
How to Create Thread
https://www.tpointtech.com/java-tutorial 10/25
3/22/25, 6:17 PM Java Tutorial | Learn Java Programming - Tpoint Tech
Java Console
Java FilePermission
Java Writer
Java Reader
Java FileWriter
Java FileReader
Java BufferedWriter
Java BufferedReader
Java CharArrayReader
Java CharArrayWriter
Java PrintStream
Java PrintWriter
Java OutputStreamWriter
Java InputStreamReader
Java PushbackInputStream
Java PushbackReader
Java StringWriter
Java StringReader
Java PipedWriter
Java PipedReader
Java FilterWriter
Java FilterReader
Java Scanner
Java File Handling
File Operations in Java
Java File class
How to Create a File in Java
How to Read File in Java
How to Delete a File in Java
Java FilePermission class
Java FileDescriptor class
Java RandomAccessFile
How to Create a Zip File in Java
How to Read and Print All Files from a Zip file in Java?
Java Path vs File
Java Serialization
Java Serialization
https://www.tpointtech.com/java-tutorial 12/25
3/22/25, 6:17 PM Java Tutorial | Learn Java Programming - Tpoint Tech
Java TreeMap
Java Hashtable
HashMap vs Hashtable
Java EnumSet
Java EnumMap
Java Collections class
Sorting Collections in Java
Comparable interface in Java
Comparator interface in Java
Comparable vs Comparator
Properties class in Java
ArrayList vs Vector
Java Vector
Java Stack
Java Collection Interface
Java Iterator Interface
Java Deque Interface
Working of HashSet in Java
Searching Algorithms in Java
Linear Search in Java
Binary Search in Java
Sorting Algorithms in Java
Insertion Sort in Java
Selection Sort in Java
Bubble Sort in Java
Java JDBC
JDBC Introduction
JDBC Driver
Java Database Connectivity with 5 Steps
Connectivity with Oracle
Connectivity with MySQL
Access without DSN
DriverManager
Connection
Statement
https://www.tpointtech.com/java-tutorial 14/25
3/22/25, 6:17 PM Java Tutorial | Learn Java Programming - Tpoint Tech
AD
Related Posts
Program Internal
Internal Details of Hello Java Program In the ious section, we have created
Java Hello World program and learn how to compile and run a Java program.
In this section, we are going to learn, what happens while we compile and run
the Java program. Moreover, we...
1 min read
Java Operators
Operators in Java Operator are an essential part of any programming
language. In Java, operator is a symbol that is used to perform operations. For
example: +, -, *, / etc. These are essential for performing different types of
operations on variables and values. In this...
5 min read
Unicode System in Java
Computer systems internally store data in binary representation. A character
is stored using a combination of 0's and 1's. The process is called
encoding. A character encoding scheme is important because it helps to
https://www.tpointtech.com/java-tutorial 16/25
3/22/25, 6:17 PM Java Tutorial | Learn Java Programming - Tpoint Tech
memory location. There are three types of variables in java: local, instance and
static. There are two types of...
4 min read
Features of Java
The primary objective of Java programming language creation was to make it
portable, simple and secure programming language. Apart from this, there
are also some excellent features which play an important role in the
popularity of this language. The features of Java are also known...
4 min read
JVM: Java Virtual Machine
JVM (Java Virtual Machine) Architecture JVM (Java Virtual Machine) is an
abstract machine. It is a specification that provides a runtime environment in
which Java bytecode can be executed. JVMs are available for many hardware
and software platforms (i.e., JVM is platform-dependent). JVMs are designed
to be platform-dependent,...
7 min read
History of Java
The history of Java is indeed fascinating. Originally designed for interactive
television, Java's journey began with the Green Team, a group within Sun
Microsystems led by James Gosling. Their goal was to create a programming
language for digital devices like set-top boxes and televisions. However,...
11 min read
Subscribe to Tpoint Tech
We request you to subscribe our newsletter for upcoming
updates.
https://www.tpointtech.com/java-tutorial 18/25
3/22/25, 6:17 PM Java Tutorial | Learn Java Programming - Tpoint Tech
DBMS Data
Structures
Operating
DAA
System
Computer Compiler
Network Design
Computer Discrete
Organization Mathematics
Ethical Computer
Hacking Graphics
Web Software
Technology Engineering
https://www.tpointtech.com/java-tutorial 20/25
3/22/25, 6:17 PM Java Tutorial | Learn Java Programming - Tpoint Tech
Aptitude Reasoning
Verbal Interview
Ability Questions
Company
Questions
https://www.tpointtech.com/java-tutorial 22/25
3/22/25, 6:17 PM Java Tutorial | Learn Java Programming - Tpoint Tech
https://www.tpointtech.com/java-tutorial 24/25