An expression involving byte, int, and literal numbers is promoted to which of t

Home | Discussion Forum
Taiyari24Hour

An expression involving byte, int, and literal numbers is promoted to which of these?



View More Related Question

2) Which of the following automatic type conversion will be possible?

3) What is the output of this program?

      class char_increment      {
public static void main(String args[])
{
char c1 = 'D';
char c2 = 84;
c2++;
c1++;
System.out.println(c1 + " " + c2);
}
}

4) What is the prototype of the default constructor of this class?

      public class prototype { }

5) What is the error in this code?

      byte b = 50;
b = b * 50;

UP Gk Online Test

taiyari24hour.com

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