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

What is the use of http-tunneling in rmi?

0 Answers  


How do you escape in java?

0 Answers  


What are Font and FontMetrics classes?

1 Answers  


What is ResourceBundle class?

1 Answers  


What is classname class in java?

0 Answers  






Define linked list and its features with signature?

0 Answers  


What’s the difference between the methods sleep() and wait()?

0 Answers  


What is printwriter in java?

0 Answers  


What is off heap memory?

0 Answers  


What is variable and its types?

0 Answers  


What is method Overriding in the perspective of OOPS?

4 Answers   TCS,


v-model life cycle

0 Answers   Virtusa,


Categories