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 java support call by reference and call by value, if supports please explain?
Is char a data type in java?
When should I use singleton?
Which object oriented concept is achieved by using overloading and overriding?
What is file class and what is its purpose?
What are static variables and functions?
What is use of arraylist in java?
what is the purpose of "virtual"?
Is math an abstract class in java?
What is bufferedwriter?
why java is better then .net?
what is a static block?