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 are the kinds of polymorphism?
How to optimize the javac output?
Is static variable stored in heap?
what is the use of bean managed and container managed with example?
Do I need java for windows 10?
what is a green thread? : Java thread
What are the important features of Java 10 release?
Is double bigger than float?
Explain about oops concepts.
Why there is no call by reference in java?
Explain restrictions for using anonymous inner classes?
What is a Transient Object?
What is an example of character?
Can you add null to a list java?
How is java hashmap implemented?