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
Why we cannot override static method?
Can string be considered as a keyword?
What is identifier give example?
How can we access some class in another class in java?
What is a return in java?
Can I learn java in 3 months?
What is a get method?
What is the original name of java?
Distinguish between a predicate and a function?
What is arraylist class in java?
What is immutable state?
Can we extend a class with private constructor?
What are class members by default?
Can a boolean be null java?
Explain how to convert any java object into byte array.