How to print a statement without using semicolan in java

Answer Posted / prince kohli

claass WithoutSemicolon
{
public static void main(String args[])
{
if(System.out.printf("hello java")==null)
{}
}
}

Is This Answer Correct ?    10 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is string [] java?

703


What do you mean by synchronized non access modifier?

739


Explain polymorphism citing an example.

780


what are abstract functions?

739


What is port number in java?

774






Which programming language is most secure?

713


What is use of arraylist in java?

787


Can main() method in java can return any data?

875


What is threaded programming and when is it used? : Java thread

731


What does void * mean?

695


Is a class subclass of itself?

809


What is a char in java?

718


What is google full form?

735


what is a thread pool in java and why is it used?

693


How are java objects passed to a method and what are native methods?

794