System.out.println(101/14)
what is the output?
a)6
b)14
c)7.14
d)0
Answer Posted / arjun
There should be a semicolon(;)at ending of the code...
i.e
System.out.println(101/14);
Then ans wil b 7 only
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
What is a pattern what is an anti pattern?
Explain how to convert any java object into byte array.
What is the purpose of garbage collection in java? When is it used?
What is the difference between member variables initialization and assignment in a constructor?
Can we change the value of static variable?
What is the console in java?
How to change the priority of thread or how to set the priority of thread?
Who developed java?
What is callable java?
Can we override constructor in java?
Difference between character constant and string constant in java ?
Why are pointers not secure?
Why is the type for real numbers called double?
What is sortedset in java?
What is Java Reflection API? Why it’s so important to have?