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 is the collections api?
How do you calculate roots in java?
What is classes in java?
worst case complexities of Quick sort and Merge sort.
explain different ways of using thread? : Java thread
What is string and its types?
What is instance synchronization?
Can a singleton class be inherited?
What is the difference between jdk and jre?
What is a java object and java application?
How will you initialize an Applet?
Are arrays primitive data types?
Is null a string in java?
Explain the purpose of garbage collection in Java?
What is a string token?