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


Please Help Members By Posting Answers For Below Questions

What is * argv?

711


Which method cannot be overridden in java?

610


What is main difference between variable and constant?

536


What are the limitations of procedural programming approach?

534


What is stack example?

549






What are data types in oop?

557


Is java an open source?

530


What are java packages?

587


How do you include a string in java?

527


What is difference between local variable and global variable?

480


What is the main functionality of the remote reference layer?

1420


Why unicode is important?

469


What is the purpose of a volatile variable?

561


Give few examples of final classes defined in Java API?

707


What is the vector class in java programming?

569