System.out.println(101/14)
what is the output?
a)6
b)14
c)7.14
d)0
Answers were Sorted based on User's Feedback
Answer / sanchit
Answer is 7,
as int is the default datatype for numeric values.. Not float.
| Is This Answer Correct ? | 17 Yes | 0 No |
What do you mean by global variable?
What is a dynamic array java?
What is OOPS Concept?
Is Java Platform Independent if then how?
When we give defination of interface method in the class why method must be public???
what is the default value of a variable char?(If not assigned)
How to make class immutable
Difference between Array and vector?
What are the drawbacks of singleton class?
What is var keyword ?
Can keyword be used as identifier?
can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread