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 |
Explain the init method?
Why javac is not recognized?
Suppose there is an Online shopping cart application having different objects like Cart, SelectionItem, Billing, COnfiguration, Authentication, Authorization, PersonalDetails etc. Out of this which one can be made a singleton pattern and why?
Are maps ordered java?
What are the limitations for static method?
Differences between C and Java?
Can we clone singleton object in java?
Which collection is sorted in java?
Does string is thread-safe in java?
What are different type of access modifiers?
What is the purpose of declaring a variable as final?
What is r in java?