Byte intValue() method in Java with examples Last Updated : 05 Dec, 2018 Comments Improve Suggest changes Like Article Like Report The intValue() method of Byte class is a built in method in Java which is used to return the value of this Byte object as int. Syntax ByteObject.intValue() Return Value: It returns the value of ByteObject as int. Below is the implementation of intValue() method in Java: Example 1: Java // Java code to demonstrate // Byte intValue() method class GFG { public static void main(String[] args) { // byte value byte a = 17; // wrapping the byte value // in the wrapper class Byte Byte b = new Byte(a); // intValue of the Byte Object int output = b.intValue(); // printing the output System.out.println("Integer value of " + a + " is : " + output); } } Output: Integer value of 17 is : 17 Example 2: Java // Java code to demonstrate // Byte intValue() method class GFG { public static void main(String[] args) { String value = "17"; // wrapping the byte value // in the wrapper class Byte Byte b = new Byte(value); // intValue of the Byte Object int output = b.intValue(); // printing the output System.out.println("Integer value of " + b + " is : " + output); } } Output: Integer value of 17 is : 17 Comment More infoAdvertise with us Next Article Byte intValue() method in Java with examples K kundankumarjha Follow Improve Article Tags : Java Java - util package Java-Functions Java-Byte java-lang-reflect-package +1 More Practice Tags : Java Similar Reads Double intValue() method in Java with examples The intValue() method of Double class is a built in method to return the value specified by the calling object as int after type casting. Syntax: DoubleObject.intValue() Return Value: It return the value of DoubleObject as int. Below programs illustrate intValue() method in Java: Program 1: Java // 2 min read Float intValue() method in Java with examples The intValue() method in Float Class is a built in method in Java that returns the value specified by the calling object as int after type casting. Syntax: public int intValue() Parameters: The function accepts no parameter. Return Value: It return the value of FloatObject as int. Below programs ill 2 min read Level intValue() method in Java with Examples The intValue() method of java.util.logging.Level is used to get the integer value for this level object. Every level has an integer value associated with it. This integer value can be used for efficient ordering comparisons between Level objects. This method is helpful if we want to use the int valu 2 min read AtomicLong intValue() method in Java with examples The Java.util.concurrent.atomic.AtomicLong.intValue() is an inbuilt method in java that returns the value which is currently stored in the object which is of data-type long by doing a narrowing primitive conversion. Syntax: public long intValue() Parameters: The function does not accepts a single pa 1 min read Byte floatValue() method in Java with examples The floatValue() method of Byte class is a built in method in Java which is used to return the value of this Byte object as float. Syntax ByteObject.floatValue() Return Value: It return the value of ByteObject as float. Below is the implementation of floatValue() method in Java: Example 1: Java // J 2 min read Like