Browsing category

Keyword in Java

The if keyword in Java programming language

The if keyword in Java programming language In this tutorial,we will learn about The if  keyword in Java programming language In Java if  keyword in java  is used to  if statement to test the boolean expression.  It indicates conditional execution of a block. The condition must be evaluated to a boolean value. An if statement may…

The do keyword in Java programming language

The do keyword in java programming language We will learn  about the do keyword in java programming language The do keyword is used to implement do-while loop in Java. It is used for execution of the block of statement at least one time in Java. When the boolean condition is executed, if the condition is…

The for keyword in Java programming language

The for keyword in Java programming language We will learn about the for keyword in Java programming language In Java programming language, the for keyword is used in the for loop. The for keyword specifies a loop that executes a block of statements repeatedly until given condition (boolean expression) is true. The for loop test expression…

The while keyword in Java programming language

The while keyword in Java programming language We will learn about the while keyword in Java programming language In Java programming language, while is a keyword used in the while and do while loop. The while  specifies a loop that executes a block of statements repeatedly until given  condition(Boolean expression) is true. In the while loop…

The boolean keyword in Java programming language

The boolean keyword in java programming language In this tutorial , We will learn about the boolean keyword in java programming language In Java language, Boolean is used to declare a variable as a boolean type. This represents only either true or false(Zero or one). In Java language, default boolean value  is initialized with false;…

The double keyword in Java programming language

The double keyword in java programming language In this tutorial,  we will discuss about the double keyword in java programming language In Java programming language, double is a keyword is used to declare a floating point variable as a numeric type. A double value can hold a 64-bit floating point number. Double is a primitive…

The float keyword in Java programming language

The float keyword in Java programming language In this tutorial, we will discuss  about the float keyword in java programming language In the java language, float keyword is used to declare a variable as a numeric type. float is a primitive data type which is used to store 32 bit float data type. Declaration of…

Keywords in Java programming language

Keywords in Java programming language In this tutorial, We will discuss the Keywords in Java In the Java programming language, keywords are reserved words for programming capability. it is used in variables, method, class or as any other identifiers but programmers cannot use keywords as the name of variables, methods, classes, and other identifiers  …

The long keyword in Java programming language

The long keyword in Java programming language In this tutorial, we will learn about the long keyword in java programming language long is a Java keyword which is used to declare a variable as a numeric type. A long value can hold a 64-bit integer number which ranges from -263 to 263-1. Declaration variable the…

The short keyword in Java programming language

The short keyword in Java programming language In this tutorial, we learn about the short keyword in java programming language. The short keyword is a Java keyword used to declare a type of numeric variable. A short variable can hold a 16-bit integer number which ranges from -32,768 to 32767 Declaration short – in variable…