This post originated from an RSS feed registered with Java Buzz
by instanceof java.
Original Post: Byte Wrapper Class
Feed Title: Instance Of Java
Feed URL: http://feeds.feedburner.com/blogspot/TXghwE
Feed Description: Instance of Java. A place where you can learn java in simple way each and every topic covered with many points and sample programs.
Byte Wrapper class Programs: The java.lang.Byte class is used to primitive type byte in the form of object.
public final class Byte extends Number implements Comparable<Byte>
Byte Class Constructors: Byte(byte value) Byte(String s)
Byte Class Methods:
public byte byteValue() returns the value of this Byte as a byte.
Program:
package com.instanceofjava;
import java.lang.*;
public class ByteClass {
public static void main(String[] args) { Byte a; a = new Byte("100"); byte t; t = a.byteValue(); String s= "byte value of Byte object " + a + " is " + t; System.out.println( s); } }