Learn Java Programming - Byte Class Tutorial

Veröffentlicht am: 02 September 2015
auf dem Kanal: Daniel Ross
2,426
21

The Byte class is wrapper class that wraps a value of a primitive byte data type into an object. I highly recommend watching my Primitive Wrapper Classes Tutorial, Primitive Numeric Type Casting Tutorial, and my Autoboxing Tutorial before continuing with this tutorial. You will need to understand certain concepts from all of them in order to fully comprehend the material in this tutorial. It is important to note that the Byte class is immutable.
Fields (Constants)

The Byte class contains a total of five class variables that are essentially constants: BYTES, MAX_VALUE, MIN_VALUE, SIZE, and TYPE. I will show examples of how to access these members, but TYPE is beyond the scope of this tutorial series thus far - so no go.
Constructors

The Byte class does not have a no-argument constructor. The class has two public constructors:
Byte(byte value)
Byte(String s)
Methods

The Byte class has about 20 methods so I won't list all of them here. I will demonstrate how to use some of the methods in the example code.


Auf dieser Seite können Sie das Online-Video Learn Java Programming - Byte Class Tutorial mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Daniel Ross 02 September 2015 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 2,426 Mal angesehen und es wurde von 21 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!