Which of the following automatic type conversion will be possible?

Home | Discussion Forum
Taiyari24Hour

Which of the following automatic type conversion will be possible?



View More Related Question

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

3) What is the output of this program?

      class conversion      {
public static void main(String args[])
{
double a = 295.04;
int b = 300;
byte c = (byte) a;
byte d = (byte) b;
System.out.println(c + " " + d);
}
}

4) What is Truncation is Java?

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

UP Gk Online Test

taiyari24hour.com

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