• Java

    Write a Java program to display all primitive type variables. Also display your name in the last line.

    The basic primitive datatypes are listed below. Integer Floating Point Character Boolean Here this types also categorized in other datatypes as follow. Integer This all stores signed, positive and negative values. byte short int long Floating Point Floating Point also known as real number are used when evaluating expression that require fraction precision. float double Character take ASCII value. In java char is 16 bit type. The range of char is 0 to 65535. There is no negative char. In java, boolean data type we cannot assign 0 or 1 or any numeric value to determines true or false. It…