What is the range of byte data type in Java?

Home | Discussion Forum

What is the range of byte data type in Java?

View More Related Question

1) Which of these literals can be contained in float data type variable?

2) What is the output of this program?

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

3) Which of the following is not provided by BigDecimal?

4) What is the output of below code snippet?

  class A
{
}
enum Enums extends A
{
ABC, BCD, CDE, DEF;
}

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

UP Gk Online Test

taiyari24hour.com