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

Explain the init method?

0 Answers  


Why javac is not recognized?

0 Answers  


Suppose there is an Online shopping cart application having different objects like Cart, SelectionItem, Billing, COnfiguration, Authentication, Authorization, PersonalDetails etc. Out of this which one can be made a singleton pattern and why?

2 Answers   RBS,


Are maps ordered java?

0 Answers  


What are the limitations for static method?

3 Answers   Greenwood,






Differences between C and Java?

0 Answers   TCS,


Can we clone singleton object in java?

0 Answers  


Which collection is sorted in java?

0 Answers  


Does string is thread-safe in java?

0 Answers  


What are different type of access modifiers?

3 Answers  


What is the purpose of declaring a variable as final?

0 Answers  


What is r in java?

0 Answers  


Categories