Binary Representation & Bitwise Operators

What does the following program output?

DataDemo.java

Compile and run the program to check your answers.

Alter the values of b1, b2, b3, and mask to practice converting bases and bitwise operators.

Study the implementation of DataDemo to see how bytes are converted to strings and also how the int values of +, &, >>, etc. have to be cast to bytes.

Expect a question like this on an exam.