Java Byte byteValue() methodThe byteValue() method of Java Byte class returns the value of this Byte as a byte. Syntax:Parameters:NA OverridesThe byteValue() method overrides byteValue in Number class. Return ValueThis method returns the numeric value of this object after converting it to primitive byte. Example 1Test it NowOutput: 34 Example 2Test it NowOutput: -128 127 Example 3Test it NowOutput: Error:(6, 21) java: byte cannot be dereferenced
Next TopicJava Byte
|