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

Answers were Sorted based on User's Feedback



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

Answer / somasekhar

System.out.println(101/14) It will print 7

Is This Answer Correct ?    18 Yes 0 No

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

Answer / sanchit

Answer is 7,
as int is the default datatype for numeric values.. Not float.

Is This Answer Correct ?    17 Yes 0 No

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

Answer / sivadasan

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

Is This Answer Correct ?    17 Yes 1 No

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

Answer / srk

Ans is 7

Is This Answer Correct ?    9 Yes 0 No

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

Answer / arjun

There should be a semicolon(;)at ending of the code...
i.e
System.out.println(101/14);

Then ans wil b 7 only

Is This Answer Correct ?    9 Yes 1 No

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

Answer / sasirekha

answer is c

Is This Answer Correct ?    7 Yes 12 No

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

Answer / krishna

7.14

Is This Answer Correct ?    3 Yes 13 No

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

Answer / guest

7.14

Is This Answer Correct ?    1 Yes 16 No

Post New Answer

More Core Java Interview Questions

From the two, which would be easier to write: synchronization code for ten threads or two threads?

0 Answers  


Explain the role played by Java Virtual Machine in Java Programming?

1 Answers  


What is the declaration statement?

0 Answers  


What is the difference between Resultset and Rowset.

6 Answers   IBM, Wipro,


what us Dyna action form?

4 Answers   Aithent Technologies,






How many threads can java run?

0 Answers  


What is overriding in java?

0 Answers  


List some important characteristics on jre

0 Answers  


What is a treeset in java?

0 Answers  


How do you sort in ascending order in java?

0 Answers  


suppose we have an interface & that interface contains five methods. if a class implements that interface then we have to bound that to give tha definition of all five methods in that class. If we declare that class as abstract then can we call only two methods to give the deinition of that method & i don't want to give the definition of all the methods? can it possible

6 Answers   HP, Wipro,


how to handle exceptions in ejb?

1 Answers   HCL,


Categories