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 |
class{ ... ... interface myinterface{ ... ... } abstract class{ .. .. } ... .. .. } is this possible to write "Interface and/ or Abstract class inside a class ? if possible whcich one is possible is only interface? is only abstract?
What is adapter class?
What is casting?
What classes of exceptions may be thrown by a throw statement?
What are reference variables in java?
What is singleton class in java and how can we make a class singleton?
What is the use of callablestatement?
Why does java have two ways to create child threads?
How do you use wildcards?
What the difference is between execute, execute Query, execute Update?
Explain the difference between Unicast and Multicast objects?
What are the principle concepts of oops?