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

How do you check if a number is a perfect square?

518


Explain importance of finally block in java?

588


What do you understand by soft reference?

586


Why is String immutable?

626


What are the different ways of creating thread?

574






Are primitives objects?

566


when should you use stringbuilder class in a program?

526


What are the principle concepts of oops?

540


What is return keyword in java?

568


Can we clone singleton object?

567


Why we override equals() method?

571


What are byte codes?

659


How many types of array are there?

552


Is a boolean 1 bit?

618


What is tree node in java?

530