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
How many bits is a word?
Can you add null to a list java?
What is arrays sort in java?
Are arrays primitive data types?
Is string serializable in java?
What is difference between public static and void?
What happens if a constructor is declared private?
What are the types of methodology?
How many characters is 16 bytes?
What is thread synchronization in java?
What is assembly condition codes?
When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?
how to open and edit XML file in Weblogic???
What are advantages of exception handling in java?
If I only change the return type, does the method become overloaded?