Home / Core Java Tutorial

Core Java Tutorial

Java Evolution

Java History

Java Features

Benefits of Java over C and C++

How Java works

The Java Programming Language

The Java Platform

Java Development Kit (JDK)

HARDWARE AND SOFTWARE REQUIREMENTS

Disadvantages of Java 

Overview of Java Language

Developing the Java Application

Comments in Java Code | Overview of Java Language

Defining a Class | Overview of Java Language

The main Method | Overview of Java Language

Using Classes and Objects

Java Program Structure | Overview of Java Language

Java Tokens | Overview of Java Language

Constant, Variable and Datatype

Variables  

Declaring Variables

Rules on Variable Names

Variable Types

Primitive Data Types

Constants

Operator and Expression

Expressions and Operators

Operator Precedence

Integer Operators

Relational Integer Operators

Floating point Operators

Relational Floating-Point Operators

String Operator

Assignment Operators

Arithmetic assignment operations

Conversions

Casts

Boolean expressions and operations

Logical operators

Bitwise operations

The complement operator

Decision making, Branching & looping

Flow control with if and else

The if statement | Decision making, Branching and Looping

The else statement | Decision making, Branching and Looping

Switch statements | Decision making, Branching and Looping

for, while, and do-while statements

The for statement | Decision making, Branching and Looping

The while statement | Decision making, Branching and Looping

The do-while statement

Using break and continue | Decision making, Branching and Looping

The break statement | Decision making, Branching and Looping

The continue statement | Decision making, Branching and Looping

Class Object and Method

Introduction to Classes

The Benefit of Classes

Defining Classes

Class using constructor

Object

Declaring an Object

Initializing an Object

Referencing an Object’s Variables

Calling an Object’s Methods

Creating Classes  

The Class Body

Constructors for Classes

Implementing Methods

The Method Body

A Method’s Name

Example of the Math class

Array and String

Arrays

Java arrays

Object arrays

What is Strings?

String Concatenation

Inheritance

What is Inheritance?

Creating Subclasses

Member Variables In Subclass Inherit?

Hiding Member Variables

Methods In Subclass Inherit?

Overriding Methods

Methods a Subclass Cannot Override

Methods a Subclass Must Override

The Benefits of Inheritance

Interfaces

Interfaces and Classes

Implementing and Using Interfaces

Implementing Multiple Interfaces

Creating and Extending Interfaces

Methods Inside Interfaces

Extending Interfaces

Packagee

Package

Declaring Packages

Importing Packages

Creating Our Own Packages

The Java Language Package

The Java I/O Package

The Java Utility Package

The Java Networking Package

The Abstract Window Toolkit Packages

Multithreading

Multithreading

Thread

Thread Attributes

Thread State

Thread Group | Multithreading

Methods that Operate on the Group | Multithreading

Access Restriction Methods Multithreading

The notifyAll() and wait() Methods

Multithreading Frequently used Method

Exception Handling

Introduction Exception Handling In Java

What Is an Exception?

If Exceptions than?

The exception handling technique | Exception Handling In Java

Some Terminology | Exception Handling In Java

Throw an Exception | Exception Handling In Java

Throw, try, and catch Blocks | Exception Handling In Java

Multiple catch Blocks | Exception Handling in Java

The finally Clause | Exception Handling in Java

The Throwable Class | Exception Handling in Java

Types of Exceptions | Java Exception Handling

Different List of Exception | Java Exception Handling

Built-In Exceptions | Java Exception Handling

Applet

Introduction to Java Applet

How Applets and Applications Are Different | Applet Java

Limitation of Applet

The Applet class | Applet Java

Major Applet Activities | Applet Java

The life cycle of a Web page applet | Applet Java

Including an Applet on a Web Page | Applet Java

Essential HTML to launch an applet and pass it parameters | Applet Java

Launching an applet in an HTML document | Applet Java

A sample applet that receives a parameter | Applet Java

Posting a Web page that launches a custom applet | Applet Java

Managing Input/Output Files in Java

IntroductioJavan of Managing Input/Output Files in Java

Streams | Managing Input/Output Files in Java

Input Streams | Managing Input/Output Files in Java

The Abstract Class InputStream | Managing Input/Output Files in Java

The FileDialog class | Managing Input/Output Files in Java

Low-level and high-level stream classes | Managing Input/Output Files in Java

The FileInputStream class | Managing Input/Output Files in Java

The DataOutputStream class | Managing Input/Output Files in Java

The ObjectOutputStream class | Managing Input/Output Files in Java

The ObjectInputStream class | Managing Input/Output Files in