Privacy Policy Terms Of Use. Copyright © 2006-2010 Java Tutorials and Examples.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
- public class Demo{
- public static void main (String args []){
- /*
- while (true){
- Demo d = new Demo();
- System.out.println("Demo created");
- }
- /* … Will print Hello world */
- System.out.println ("Hello World");
- }
- }
b. The code will compile but goes into infinite loop
c. The code will compile but will not produce any output
d. None of the above

the answer is d.It will print
ans d
Not an actual java
http://www.Idonthaveasite.com
Post new comment