How to print a statement without using semicolan in java

Answer Posted / amit sharma

public static void main(String[] args) {

if(System.out.printf("hi",null) == null)
{
System.out.println("byee");
}
}


In printf(String format, Object args), We also need to
specify argument.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we cannot override static method?

550


Can string be considered as a keyword?

562


What is identifier give example?

545


How can we access some class in another class in java?

539


What is a return in java?

549






Can I learn java in 3 months?

533


What is a get method?

528


What is the original name of java?

535


Distinguish between a predicate and a function?

563


What is arraylist class in java?

505


What is immutable state?

498


Can we extend a class with private constructor?

521


What are class members by default?

653


Can a boolean be null java?

535


Explain how to convert any java object into byte array.

543