31.
Java is a ........... language.

32.
How many primitive data types are there in Java?

33.
In Java byte, short, int and long all of these are

34.
Size of int in Java is

35.
The smallest integer type is ......... and its size is ......... bits.

36.
Size of float and double in Java is

37.
Determine output:
class A{
        public static void main(String args[]){
	        int x;
 	        x = 10;
	        if(x == 10){
		        int y = 20;
		        System.out.print("x and y: "+ x + " " + y);
		        y = x*2;
	        }
	        y = 100;
	        System.out.print("x and y: " + x + " " + y);
        }
}

38.
Automatic type conversion in Java takes place when

39.
Which of the following automatic type conversion will be possible?

40.
What is the output of the following program?
class A{
        public static void main(String args[]){
	        byte b;
   	        int i = 258;
	        double d = 325.59;

	        b = (byte) i;
	        System.out.print(b);

	        i = (int) d;
	        System.out.print(i);

                b = (byte) d;
                System.out.print(b);
        }
}

Read More Section(Data Types and Variables)

Each Section contains maximum 100 MCQs question on Data Types and Variables. To get more questions visit other sections.