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
22
21
20
Compilation Error

ANSWER DOWNLOAD EXAMIANS APP

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

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

ANSWER DOWNLOAD EXAMIANS APP