Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by whitelisting our website.

Java concepts and its programming

What will be output of following program? public class Test{public static void main(String[] args){byte b=127; b++; b++; System.out.println(b); } } ?

What will be output of following program? public class Test{public static void main(String[] args){byte b=127; b++; b++; System.out.println(b); } } ?

A. 127
B. -127
C. 129
D. -129

What will be output of following program? public class Test{public static void main(String[] args){byte b=127; b++; b++; System.out.println(b); } } ? Read More »

Java concepts and its programming

Automatic type conversion in Java takes place when________________?

Automatic type conversion in Java takes place when________________?

A. Two type are compatible and size of destination type is equal of source type.
B. Two type are compatible and size of destination type is larger than source type.
C. Two type are compatible and size of destination type is shorter than source type.
D. All of the above

Automatic type conversion in Java takes place when________________? Read More »

Java concepts and its programming