How to print a statement without using semicolan in java
Answer Posted / prince kohli
claass WithoutSemicolon
{
public static void main(String args[])
{
if(System.out.printf("hello java")==null)
{}
}
}
| Is This Answer Correct ? | 10 Yes | 3 No |
Post New Answer View All Answers
What is used of static keyword in java?
Why do we override tostring method in java?
Why wait and notify methods are declared in object class?
Should database connections be singleton?
Can we modify the throws clause of the superclass method while overriding it in the subclass?
What is valid keyword in java?
What is encapsulation in java?
Explain about method local inner classes or local inner classes in java?
How many ways can an argument be passed to a subroutine and explain them?
What is static keyword in java?
What are the advantages of java inner classes?
What is volatile keyword in java
What is the use of optional ?
What is meant by final class?
What is static import in java?