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
Describe how to implement singleton design pattern in struts.
Define how objects are stored in java?
What is a method header?
What is static keyword?
how we can create packages in java?
How do you add an arraylist to an array in java?
What is the exception hierarchy in java?
What is bytecode in java ?
Why is java so important?
What is array size in java?
What is included in core java?
How to make a read-only class in java?
Is alive and join method in java?
Is it possible to compare various strings with the help of == operator?
Why collection doesn’t extend cloneable and serializable interfaces?