Literal can be of which of these data types?

Home | Discussion Forum
Taiyari24Hour

Literal can be of which of these data types?



View More Related Question

2) What will be the output for the below code ?

public class Test
{
public static void main(String[] args)
{
byte i = 128;
System.out.println(i);
}
}

3) Which of these can not be used for a variable name in Java?

4) Which of these occupy first 0 to 127 in Unicode character set used for characters in Java?

5) What is the output for the below code ?

 public class Test
{
public static void main(String[] args)
{
byte b = 6;
b+=8;
System.out.println(b);
b = b+7;
System.out.println(b);
}
}

UP Gk Online Test

taiyari24hour.com

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