What is the numerical range of a char data type in Java?

Home | Discussion Forum

What is the numerical range of a char data type in Java?

View More Related Question

1) 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));
}
}

2) What is the numerical range of a char data type in Java?

3) What is the output of this program?

      class mainclass {
public static void main(String args[])
{
char a = 'A';
a++;
System.out.print((int)a);
}
}

4) Which of the below data type doesn’t support overloaded methods for +,-,* and /?

5) 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;

UP Gk Online Test

taiyari24hour.com