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
Explain garbage collection in java?
Is object a data type in java?
Explain about the performance aspects of core java?
What is int argc char * argv?
What is the difference between access specifiers and access modifiers in java?
What is data object example?
How to do a true java ping from windows?
In which language java is written?
What is variable explain with example?
What is structure of java heap? What is perm gen space in heap?
What is callablestatement? How you can call stored procedure to pass in parameter?
What is Major and importance difference between for and foreach loop ?
When throws keyword is used?
What does main method?
Why is the main method declared static?