System.out.println(101/14)
what is the output?
a)6
b)14
c)7.14
d)0
Answer Posted / sanchit
Answer is 7,
as int is the default datatype for numeric values.. Not float.
| Is This Answer Correct ? | 17 Yes | 0 No |
Post New Answer View All Answers
What does main method?
Can a constructor call the constructor of parent class?
What is floating data type?
What is java util list?
I want to persist data of objects for later use. What is the best approach to do so?
Why a dead thread occurs?
What is the use of join method?
What are thread safe functions?
In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?
Can we create a class inside a class in java?
What will happen if static modifier is removed from the signature of the main method?
How do you escape json?
What are exceptions
Explain the difference between protected and default access.
What is variable argument in java?