Browsing tag

keyword in Java

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…

The void keyword in Java programming language

The void keyword in Java programming language In this tutorial, we will discuss The void keyword in java programming language The void keyword is a Java keyword. This keyword allows us to create methods which do not return a value. Which means void is a special type of keyword in Java as a void keyword…

The protected keyword in Java programming language

 The protected keyword in Java programming language In this tutorial, we will discuss about the protected keyword in java programming language protected is a keyword in java programming language and an access modifier. This keyword can be used  to define a method or a variable of a class. When a variable or a method is declared…

The private keyword in Java programming language

The private keyword in Java programming language In this tutorial, we will discuss the private keyword in java programming language private is a Java keyword used to declare a member’s access as private(access modifier). When we declare access modifier as private, we can only access within the class. We can not access from other class…

The public keyword in Java programming language

The public keyword in Java programming language In this tutorial, we will learn about The public keyword in java programming language public is a  keyword and an access modifier In the Java programming language. It is used for member’s to access as public. This keyword can be used to define a class, a method or…