public class TestingByte { public static void main(String[] args) { byte b = 10; //declare a byte variable and assign the value i.e 10 System.out.println(b); // print the value of byte variable b } }