A
Q. 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 + ".");
}
}
}
- Correct Answer - Option(A)
- Views: 14
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.