Datatype in Java MCQs Exercise II

Ques 1 Datatype


Which one of the following datatypes stored 64-bit value?

A short
B float
C char
D long

Ques 2 Datatype


What is the output of the following Java Code?


public static void main(String [] args)
{
      int num1=11;
      int num2=++num1 + num1++ - num1--;
      System.put.println(num1);
}

A 14
B 15
C 16
D 17