BeginnersBook

  • Home
  • Java
    • Java OOPs
    • Java Collections
    • Java Examples
  • C
    • C Examples
  • C++
    • C++ Examples
  • DBMS
  • Computer Network
  • Python
    • Python Examples
  • More…
    • jQuery
    • Kotlin
    • WordPress
    • SEO
    • JSON
    • JSP
    • JSTL
    • Servlet
    • MongoDB
    • XML
    • Perl

Type Casting in Java

By Chaitanya Singh

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]

Posted Under: java | Tags: Java-Conversion

Java Integer min() Method

By Chaitanya Singh

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]

Posted Under: java | Tags: Integer

Java Integer max() Method

By Chaitanya Singh

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]

Posted Under: java | Tags: Integer

Java Integer lowestOneBit() Method

By Chaitanya Singh

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]

Posted Under: java | Tags: Integer

Java Integer highestOneBit() Method

By Chaitanya Singh

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]

Posted Under: java | Tags: Integer

Java Integer hashCode() Method

By Chaitanya Singh

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]

Posted Under: java | Tags: Integer

Java Integer getInteger() Method

By Chaitanya Singh

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]

Posted Under: java | Tags: Integer

Java Integer floatValue() Method

By Chaitanya Singh

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]

Posted Under: java | Tags: Integer

Java Integer equals() Method

By Chaitanya Singh

Java Integer equals(Object obj) method compares this Integer object to the given object obj. It returns true if both the objects contain same int value… [Read More]

Posted Under: java | Tags: Integer

Java Integer doubleValue() Method

By Chaitanya Singh

The doubleValue() method returns the value of this Integer as double after performing widening primitive conversion. Hierarchy: java.lang Package -> Integer Class -> doubleValue() Method… [Read More]

Posted Under: java | Tags: Integer

Java Integer divideUnsigned() Method

By Chaitanya Singh

The divideUnsigned() method returns the unsigned quotient after dividing first argument by second argument. Syntax of divideUnsigned() method public static int divideUnsigned(int dividend, int divisor)… [Read More]

Posted Under: java | Tags: Integer

Java Integer decode() Method

By Chaitanya Singh

The decode() method decodes a given string into an Integer object. It can accept decimal, hexadecimal and octal strings as argument. Decimal strings: No prefix… [Read More]

Posted Under: java | Tags: Integer

Java Integer compareUnsigned() Method

By Chaitanya Singh

The compareUnsigned() method compares two primitive int values without considering their sign. It is same as compare() method except that it doesn’t take sign into… [Read More]

Posted Under: java | Tags: Integer

Java Integer compareTo() Method

By Chaitanya Singh

The compareTo() method compares this Integer with the Integer argument. It returns, 0 if this Integer is equal to given Integer, a value less than… [Read More]

Posted Under: java | Tags: Integer

Java Integer compare() Method

By Chaitanya Singh

The compare() method compares two primitive int values passed as arguments to this method. It compares both the int values numerically. Syntax of compare() method… [Read More]

Posted Under: java | Tags: Integer

  • « Previous Page
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 41
  • Next Page »

Copyright © 2012 – 2022 BeginnersBook . Privacy Policy . Sitemap