Live quiz

java - Part 12

Question 1 of 25 Hints left: 3
Q1

What will be the output? public class Test{ public static void main(String args[]){ Object myObj = new String[]{"one", "two", "three"}; { for(String s : (String[])myObj) System.out.print(s + "."); } } }

  • A
  • B
  • C
  • D