Multiple choice technology programming languages

What does this program do ? public class BrowserTest { public static void main(String[] args) { System.out.print("iexplore:"); http://www.google.com; System.out.println(":maximize"); } }

  1. Compilation Error

  2. iexplore::maximize

  3. Runtime Error

  4. None of these

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The code compiles because 'http:' is treated as a label and '//www.google.com' is a comment. The program prints 'iexplore:' (without newline), then ':maximize' (with newline), resulting in 'iexplore::maximize'. The double colon appears from the printed text and the label.