The numberOfLeadingZeros() method of Integer class, returns number of 0’s bits before the first one-bit in the binary representation of the given int number. If… [Read More]
Java Integer longValue() Method
The longValue() method of Integer class, returns the value represented by this Integer object as long. Since the size of long is greater than the… [Read More]
Java Integer intValue() Method
The intValue() method of Integer class returns the value of this Integer object as int. You can use this method for Integer to int conversion…. [Read More]
What is byte Keyword in Java
The byte keyword has following two usages in Java: byte data type byte return type of a method The byte keyword is used to define… [Read More]
What is break Keyword in Java
The break keyword is used inside loops (for, while or do-while) or switch-case block. When used in loops: It ends the loop as soon as… [Read More]
What is a boolean Keyword in Java
The boolean keyword has following two usages in Java: boolean data type boolean return type of a method The boolean keyword is a data type… [Read More]
What is abstract Keyword in Java
The abstract keyword is used for classes and methods in Java. It is not an access modifier, but it is used to achieve abstraction in… [Read More]
Type Casting in Java
Assigning a value of one primitive data type to another primitive data type is known as casting. There are two types of type casting in… [Read More]
Java Integer min() Method
The min() method of Integer class, returns smaller of two int numbers passed as arguments to this method. It works similar to Math.min() method. Hierarchy:… [Read More]
Java Integer max() Method
The max() method returns greater of two int numbers passed as arguments to this method. It works similar to Math.max() method. Hierarchy: java.lang Package ->… [Read More]
Java Integer lowestOneBit() Method
The lowestOneBit() method of Integer class, returns an int value with a single one bit in the position of the lowest order. This is determined… [Read More]
Java Integer highestOneBit() Method
The highestOneBit() method of Integer class, returns an int value with a single one bit in the position of the highest order. This is determined… [Read More]
Java Integer hashCode() Method
The hashCode() method returns a hash code for the given integer value. Syntax of hashCode() method The following variation of hashCode() method does not accept… [Read More]
Java Integer getInteger() Method
The getInteger() method of Integer class, returns the integer value of the system property with the specified property name. Hierarchy: java.lang Package -> Integer Class… [Read More]
Java Integer floatValue() Method
Java Integer floatValue() method returns the value of this Integer object as float after performing widening primitive conversion (Integer -> float). Hierarchy: java.lang Package ->… [Read More]
- « Previous Page
- 1
- …
- 3
- 4
- 5
- 6
- 7
- …
- 43
- Next Page »