Javatpoint Logo
Javatpoint Logo

Java Byte intValue() method

The intValue() method of Java Byte class returns an int value for this Byte after a widening primitive conversion.

Syntax:

Parameters:

NA

Specified by

This method is specified by intValue in class Number

Return Value

This method returns the numeric value of this object after conversion to type int.

Example 1

Test it Now

Output:

Integer value : 98
Integer value : 102

Example 2

Test it Now

Output:

Sum : 
23+45= 68

Example 3

Test it Now

Output:

Maximum number between 23 and 45 : 45
Minimum number between 23 and 45 : 23

Next TopicJava Byte





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback

  • Send your Feedback to feedback@javatpoint.com

Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA