Single Choice Not Set

QDetermine 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);
        }
}

ID: #2011 Java Data Types and Variables - MCQ 1,150 views
Question Info
#2011Q ID
Not SetDifficulty
Java Data Types and Variables - MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A float
  • B double
  • C Compilation Error
  • D Exception is thrown at runtime
Correct Answer

Explanation

double

Share This Question

Challenge a friend or share with your study group.