What is the range of byte data type in Java?

Home | Discussion Forum
Taiyari24Hour

What is the range of byte data type in Java?



View More Related Question

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

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

4) If we try to add Enum constants to a TreeSet, what sorting order will it use?

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

UP Gk Online Test

taiyari24hour.com

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