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 advantage of java?
What does the three dot emoji mean?
Why do we need strings in java?
What is boolean logic?
What is get () in java?
What is the purpose of garbage collection in java? When is it used?
what is the messsage u r going to get from an objectoriented programing?
Why static functions are used?
What is toarray method in java?
How many types of voids are there?
How do weakhashmap works?
How many bits is a boolean?
Can we override constructors in java?
Why inputstreamreader is used in java?
What is a local, member and a class variable?