Data Types and Variables
What is the output of the following program?public class Test{static int x = 10 ; public static void main(String[] a){ Test test = new Test( ) ; Test test1 = new Test( ) ; test.x += 1 ; System.out.println( test.x + test1.x ) ; }}

Throws Exception
20
Compilation Error
21
22

ANSWER DOWNLOAD EXAMIANS APP

Data Types and Variables
Automatic type conversion in Java takes place when

All of these
Two type are compatible and size of destination type is equal of source type.
Two type are compatible and size of destination type is larger than source type.
Two type are compatible and size of destination type is shorter than source type.

ANSWER DOWNLOAD EXAMIANS APP