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 replaceall in java?

547


What is flush () in java?

560


What are untrusted applets?

591


What is a for loop in java?

600


Can we define static methods inside interface?

529






What is the syntax and characteristics of a lambda expression? Explain

545


How does callback work in java?

608


Why does the integer quotient -0/3 yield 0, but the double quotient -0.0/3.0 yields – 0.0?

613


How do you use parseint in java?

515


how to prepare for IT Officers Interview in Banks

1506


How many bits is a char?

539


What is boolean strategy?

630


What happens if we override only equals?

583


How define set in java?

515


What is the function of http?

535