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

What do you mean by global variable?

0 Answers  


What is a dynamic array java?

0 Answers  


What is OOPS Concept?

1 Answers   Cap Gemini,


Is Java Platform Independent if then how?

5 Answers  


When we give defination of interface method in the class why method must be public???

2 Answers  


what is the default value of a variable char?(If not assigned)

4 Answers  


How to make class immutable

6 Answers  


Difference between Array and vector?

9 Answers  


What are the drawbacks of singleton class?

0 Answers  


What is var keyword ?

0 Answers   Wipro,


Can keyword be used as identifier?

0 Answers  


can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread

0 Answers  


Categories