+ 1

Java based

what is output and descrip Q: 2 Given 12. public class Yippee2 { 13. 14. static public void main(String [] yahoo) { 15. for(int x = 1; x < yahoo.length; x++) { 16. System.out.print(yahoo[x] + " "); 17. } 18. } 19. } and the command line invocation: java Yippee2 a b c What is the result? A. a b B. b c C. a b c D. Compilation fails. E. An exception is thrown at runtime.

23rd Nov 2016, 3:17 AM
Renganathan S
Renganathan S - avatar
2 Answers
+ 1
The answer is B But, why don't you use Code Playground? https://code.sololearn.com/#java There you can test your code to see what is the result; I invite you to use it and practices your debugging acknowledge. Happy Codes!
23rd Nov 2016, 3:54 AM
Juan Carlos Luna Hernandez
Juan Carlos Luna Hernandez - avatar
+ 1
but in this program we should compile then only we receive the answer ... your code.sololearn is direct runtime environment sir
23rd Nov 2016, 4:01 AM
Renganathan S
Renganathan S - avatar