java - Byte to "Bit"array -
a byte smallest numeric datatype java offers yesterday came in contact bytestreams first time , @ beginning of every package marker byte send gives further instructions on how handle package. every bit of byte has specific meaning in need entangle byte it's 8 bits.
you convert byte boolean array or create switch every case can't best practice.
how possible in java why there no bit datatypes in java?
because there no bit data type exists on physical computer. smallest allotment can allocate on modern computers byte known octet or 8 bits. when display single bit pulling first bit out of byte arithmetic , adding new byte still using 8 byte space. if want put bit data inside of byte can stored @ least single byte no matter programming language use.
Comments
Post a Comment