Category: java

Java Keyword Int

The reserved keyword int is used in Java to declared a variable as a numeric data type. The int data type is a 32 bit signed two’s complement integer, which has a minimum value of -2147483648 (negative) and a

Java Keyword Import

The reserved keyword import is used at the beginning of a Java source (*.java) file to specify specific classes or entire Java packages to be referenced to later without having to include their package names in the reference. Starting

Java Keyword Implements

The reserved keyword implements is used in a class definition to declare the Interfaces that are to be implemented by the class. The resulting implemented class must provide concrete implementation for the methods defined by the interface. The following

Java Keyword If

The reserved keyword if is used in coordination with the keyword else to create the if-else statement. If the first condition is true, execution of the code inside the if code block is done, otherwise execution jumps down to

Java Keyword For

The reserved keyword for is used to iterate over a range of data, which could include a list, an array, or a collection. When you see the keyword for in Java, it’s going to be associated with a for

Java Keyword Float

The reserved keyword float is used to define a variable as a numeric type. A float data type is a single-precision 32 bit IEEE 754 floating point. The float has a minimum value of 1.401298464324817E-45f and a maximum value

Java Keyword Finally

The reserved keyword finally is used to define a block of Java code statements for a block defined previously by the try keyword. The finally block is executed after execution exits the try block and after any catch clauses

Java Keyword Extends

The reserved keyword extends is used in a class declaration to specify the base class or in a interface declaration to specify the base interface. A lesser used use of extends is to specify an upper bound on a

Java Keyword Enum

The reserved keyword enum is used to declare a new enumeration type that enables a variable to be a set of predefined constants. Take a look at the enum data type sample code. Let’s first take a look at

Java Keyword Else

The reserved keyword else is used in coordination with if to create an if-else statement. If the first condition is not evaluated to true, execute the code inside the else code block. Let’s first define the syntax structure of