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 |
Can constructor be static or final?
What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?
What are the states of thread in java?
Can we override the main method?
What are "methods" and "fields"?
what is Dictionary? and what purpose it is used for?
Is the milky way in a void?
What is maximum size of arraylist in java?
If a class is declared without any access modifiers, where may the class be accessed in java programming?
Name the methods in mouse listeners ?
Why is static used?
What is singleton service?