Data Types and Variables
Determine output:public class Test { static void test(float x){ System.out.print("float"); } static void test(double x){ System.out.print("double"); } public static void main(String[] args){ test(99.9); }}

Compilation Error
double
float
Exception is thrown at runtime

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 shorter than source type.
Two type are compatible and size of destination type is larger than source type.
All of these
Two type are compatible and size of destination type is equal of source type.

ANSWER DOWNLOAD EXAMIANS APP