Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Can java arraylist hold different types?

0 Answers  


What happens if we don’t override run method ?

0 Answers  


What does serializing data mean?

0 Answers  


Can we override constructors?

0 Answers  


wht is mean by dirty read?

1 Answers  


Are global variables initialized to zero?

0 Answers  


What do you mean by the term transient?

5 Answers   Ericsson,


Which package is imported by default?

0 Answers  


what is the difference between HashMap and Hashtable

17 Answers   Value Labs, Virtusa,


what is use of threads how many ways to create thread

3 Answers   iTrust, Verizon,


Can a static class have a constructor java?

0 Answers  


What is the advantage of OOP in java?

0 Answers  


Categories