101
Java Byte toString() method
The toString() method of Java Byte class returns a String value represented by this Byte or by the specified byte ‘b’.
Syntax:
Parameters:
The parameter ‘b’ represents a byte value.
Overrides
This method overrides toString in class Object
Return Value
This method returns a string representation of the byte value.
Example 1
Output:
String value : 98 String value : 102
Example 2
Output:
Reverse string : 011
Example 3
Output:
-1
Next TopicJava Byte