How to print a statement without using semicolan in java
Answer Posted / abhishek sahu
class PrintDemo
{
if(System.out.println("Hello"))
{
}
}
| Is This Answer Correct ? | 2 Yes | 12 No |
Post New Answer View All Answers
What is a class instance variable?
Write a method to check if input string is palindrome?
What is difference between float and double?
What is identifier with example?
What is the difference in between cpp and java? Can u explain in detail?
What's a method in programming?
What is a map? What are the implementations of map?
Can a constructor be protected?
What are loops in java?
What is difference between calling start() and run() method of thread?
Why is singleton instance static?
What is port number in java?
Can the garbage collection be forced by any means?
How do you add an element to a hashset in java?
Why do I need to declare the type of a variable in java?