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
What is garbage collection? What is the process that is responsible for doing that in java?
What is method reference in java?
What is use of static in java?
What is strings in java?
What is a native method in java programming?
What is java in simple terms?
How do you remove duplicates in java?
can I implement my own start() method? : Java thread
What is the loop in java?
What is the do while loop syntax?
What is default size of arraylist in java?
What is the difference between inner class and nested class?
What data type is true or false?
What is the structure of java?
Explain method overloading?