Browsing tag

Java language

The switch keyword in Java programming language

The switch keyword in Java programming language We will learn about the switch keyword in Java programming language The switch is always used with case keyword. the case is used with switch statement gives you the option to check a range of value for your variable. The switch statement invokes one statement from multiple conditions. Syntax…

The else keyword in Java programming language

The else keyword in Java programming language We will discuss the else keyword in Java programming language else is a Java keyword used in association with the if keyword in an if-else statement. Else statements always execute when if statements isn’t true. It is an optional part of a branching statement. When the if statement…

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 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…