InterviewSolution
Saved Bookmarks
| 1. |
What Is The Output Of This Program? 1. Class Output { 2. Public Static Void Main(string Args[]) { 3. Long Start, End; 4. Start = System.currenttimemillis(); 5. For (int I = 0; I < 10000000; I++); 6. End = System.currenttimemillis(); 7. System.out.print(end - Start); 8. } 9. } |
|
Answer» END time is the time taken by LOOP to execute it can be any non zero VALUE depending on the System. $ javac Output.java end time is the time taken by loop to execute it can be any non zero value depending on the System. Output: $ javac Output.java |
|