System.out.println(101/14)
what is the output?
a)6
b)14
c)7.14
d)0

Answer Posted / sivadasan

Answer is 7 Only...it will not print the float value..

Is This Answer Correct ?    17 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we do exception handling in java and how many types of exceptions are there?

552


What are the different types of data structures in java?

496


Can you call one constructor from another if a class has multiple constructors?

590


What are the advantages and disadvantages of reference counting in garbage collection?

582


Differences between C and Java?

621






what is encapsulation in java? Explain

667


Discuss different types of errors that generally occur while programming.

583


How does the java compiler work?

532


Can a list be null in java?

547


How do you add an element to a set in java?

502


How does hashset works in java?

540


4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (

1418


What is stack class in java?

548


What does the ‘static’ keyword mean? Is it possible to override private or static method in java?

568


Can a class have multiple subclasses?

589