Which of the following are legal lines of Java code?
  1. int w = (int)88

Home | Discussion Forum
Taiyari24Hour

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;

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) What is the prototype of the default constructor of this class?

      public class prototype { }

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

5) If an expression contains double, int, float, long, then whole expression will promoted into which of these data types?

UP Gk Online Test

taiyari24hour.com

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