What is the range of short data type in Java?

Home | Discussion Forum

What is the range of short data type in Java?

View More Related Question

2) In Java byte, short, int and long all of these are

3) Which of the following are legal lines of Java code?

  1. int w = (int)888.8;
  2. byte x = (byte)100L;
  3. long y = (byte)100;
  4. byte z = (byte)100L;

4) What is the output of this program?

 class booloperators {
public static void main(String args[])
{
boolean var1 = true;
boolean var2 = false;
System.out.println((var2 & var2));
}
}

5) Which data type value is returned by all transcendental math functions?

UP Gk Online Test

taiyari24hour.com

Study 2 Online Says....
Kindly log in or signup.