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 the use of optional ?
What is array class in java?
What is the difference between method and means?
Describe the various concepts related to object oriented programming (oop).
Which number is denoted by leading zero in java?
Which programming language is most secure?
What are nested classes in java?
What is the main difference between java platform and other platforms?
What are locale settings?
1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?
What is object class in java?
How do you remove duplicates from an array in java?
What do negative exponents mean?
What is Mutex (Mutual Exclusion Object) ?
What is wrapper class html?