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 * argv?
Which method cannot be overridden in java?
What is main difference between variable and constant?
What are the limitations of procedural programming approach?
What is stack example?
What are data types in oop?
Is java an open source?
What are java packages?
How do you include a string in java?
What is difference between local variable and global variable?
What is the main functionality of the remote reference layer?
Why unicode is important?
What is the purpose of a volatile variable?
Give few examples of final classes defined in Java API?
What is the vector class in java programming?