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 |
Is ++ operator thread-safe in java?
What is final method in java?
Can an interface be defined inside a class?
What is type casting?
what is the main differene between synchronize() method and Synchronize{}block?
What is floor math?
Explain the term serialization?
How do you escape json?
Is there any sort function in java?
What are instance variables?
What is difference between pointer and reference?
Differentiate between the constructors and methods in java?