Core Java Tutorial

Define Java

C vs C++ vs Java

Java Virtual Machine

Java First Program

Java Data Types

Java Tokens

Java Keywords

Java Operators

Operator Precedence

Java Type Casting

Java Statement

Java If statement

Java Switch statement

Java Loops

Java Jumping Statement

Java Arrays 1D

Java Arrays 2D

Java Variable Size Array

Java Vector

Java Math Methods

Java String Methods

Java String Buffer

User-Defined Method

Java Method Overloading

Java Class & Object

Java Constructor

Java Inheritance

Java Interface

Java Packages

Java Multi-threading

Exceptional Handling

File Handling

Java Applets

Java DataBase Connectivity

Page Stats

Visitor: 185

Java Statement

java statement

Fig: Classification of Java Statement

Expression Statement: There are 7 – types of expression statement: Assignment, Pre-Increment, Pre-Decrement, Post-Increment, Post-Decrement, Method call and Allocation Expression.

Labeled Statement: Labels are used to jump the statement. Java does not support goto label. So, we can use continue label. If require a loop label. Continue label use within a loop only.

Control Statement: use to control the execution of a program. Types of control statement will be discuss in later section. (goto control statement)

Synchronization statement – They are used for handling with multi-threading. (goto multi-threading)

Guarding Statement – They are used for handling with exceptions. These statements use with try, catch & finally.(goto Exceptional Handling)