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
Why we do exception handling in java and how many types of exceptions are there?
What are the different types of data structures in java?
Can you call one constructor from another if a class has multiple constructors?
What are the advantages and disadvantages of reference counting in garbage collection?
Differences between C and Java?
what is encapsulation in java? Explain
Discuss different types of errors that generally occur while programming.
How does the java compiler work?
Can a list be null in java?
How do you add an element to a set in java?
How does hashset works in java?
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. (
What is stack class in java?
What does the ‘static’ keyword mean? Is it possible to override private or static method in java?
Can a class have multiple subclasses?