Correct Answer: public void display(String message, String... values)
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Core Java Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Core Java MCQ Questions
The JVM allows programmers to manipulate the registers of the underlying system
how java is platform independent?
Given a class containing the following pieces of code: public static <T> List getList() { return new ArrayList<T>(); } // ... List<?> list = new ArrayList<Integer>(); Adding which of the following lines would cause the class to not compile?
what is order of preference in method overloading
A RuntimeException is...
A java class which extends another class is usually described with the word:
Which will legally declare, construct, and initialize an array?
The Object.wait() method:
Interfaces are useful for...
Given following code, what will be the output: import java.lang.reflect.Method; class Bar { private int bar(int a) { return a * a; } } public class Foo { public static void main(String[] args) { try { Bar bar = new Bar(); Method method = bar.getClass().getDeclaredMethod("bar", int.class); method.setAccessible(true); System.out.println(method.invoke(bar, new Integer(5))); } catch (Exception e) { e.printStackTrace(); System.out.println("Error"); } } }