How to print a statement without using semicolan in java

Answer Posted / abhishek sahu

class PrintDemo
{
if(System.out.println("Hello"))
{
}
}

Is This Answer Correct ?    2 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you understand by synchronization?

584


How do you check if an arraylist is not empty?

569


Explain about automatic type conversion in java?

561


What is gui programming?

510


Discuss about garbage collector in Java.

637






Differentiate between nested and inner class in java.

545


Can we force the garbage collection to run?

530


State two differences between C and Java.

688


What does yield method of the thread class do?

574


How does system arraycopy work in java?

573


What is the difference between iterator and list iterator?

529


What are untrusted applets?

585


When do I need to use reflection feature in java?

620


Is null keyword in java?

521


What is difference between protected and private?

522