Core Java Tutorial


Total available pages count: 51
Subject - Java Technologies

Keywords

Keyword in Java also known as Reserved word. It particularly acts as a key to code.

Abstract

Abstract keyword uses to declare an abstract class. The implementation of interfaces applied using abstract class. with abstract and non-abstract method abstract keyword useful.

Boolean

Used to declare the Boolean type of variables. It holds true or false values.

Break

Used to break loop, it breaks the current flow of specified condition of program

Byte

Used to declare a variable with 8-bit data.

Case

Used to declare block statement in a switch case statement.

Catch

Used to catch exceptions during exception handling. It is used after try block only.

Char

Used to declare a variable with 16 bit of data.

Class

Used to declare a class.

Continue

Useful in looping condition. It used to continues the current flow of the loop in the program.

Default

Used in the switch statements to specify the default block of code.

Do

Used to control statement to declare in looping statement.

Double

Used to declare a variable that holds 64-bit floating-point

Else

Used to indicate branches in if statement.

Enum

Enum used to define fix set of constants.

Extends

Used to indicate classes or interfaces.

Final

Used to indicate the variables which hold the constant values. It is also useful to restrict users.

Finally

Used in exception handling, indicates a block in a try-catch statement. The statement which is inside the Finally block always gets executed to know exception gets handled or not.

Instance of

used to give an instance of the object to a specified class or interface.

interface

Used to declare interfaces that only have abstract methods.

New

Used to generate a new object.

Package

Used to declare packages that hold the class.

Short

Used to declare a variable that holds 16 bits of integer.

Static

Used to identify the variable and methods and have great contribution in memory management.

Strictfp

Useful to restrict floating-point to ensure portability.

Super

Used to give reference to a variable that is used to refer to parent class objects.

Synchronized

Used to specify the critical method or section in multithreaded code.

This

Used to refer current object in constructor or method.

Throw

Used to explicitly throw an exception and mainly useful to throw custom exception.

Transient

Useful in serialization and transient data member can bot be serialized.

Void

Used to specify the method that don’t have any return values.

Volatile

Used to indicate variables that may get a change to asynchronously.

While

Useful to start the loop condition. While iterates the condition several times. If an iteration of a number is not fixed, it recommended to use while loop.



Comments