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 is byte [] in java?
Why do we use predicate in java?
What do you mean by synchronized non access modifier?
Explain the difference between comparator and comparable in java?
What is meant by Static query and Dynamic query?
What is meant by data hiding/encapsulation?
How long will it take to learn java?
What is inheritance?
5 Answers Accenture, Hexaware, Syntel,
Can each java object keep track of all the threads that want to exclusively access it?
Is an array a vector?
Why collection is called framework in java?
What is java instanceof operator?