ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
System.out.println(101/14)
what is the output?
a)6
b)14
c)7.14
d)0
 Question Submitted By :: Sasirekha
I also faced this Question!!     Rank Answer Posted By  
 
  Re: System.out.println(101/14) what is the output? a)6 b)14 c)7.14 d)0
Answer
# 1
answer is c
 
Is This Answer Correct ?    0 Yes 5 No
Sasirekha
 
  Re: System.out.println(101/14) what is the output? a)6 b)14 c)7.14 d)0
Answer
# 2
7.14
 
Is This Answer Correct ?    0 Yes 4 No
Guest
 
 
 
  Re: System.out.println(101/14) what is the output? a)6 b)14 c)7.14 d)0
Answer
# 3
Answer is 7 Only...it will not print the float value..
 
Is This Answer Correct ?    7 Yes 0 No
Sivadasan
 
  Re: System.out.println(101/14) what is the output? a)6 b)14 c)7.14 d)0
Answer
# 4
System.out.println(101/14) It will print 7
 
Is This Answer Correct ?    8 Yes 0 No
Somasekhar
 
  Re: System.out.println(101/14) what is the output? a)6 b)14 c)7.14 d)0
Answer
# 5
7.14
 
Is This Answer Correct ?    0 Yes 1 No
Krishna
 
  Re: System.out.println(101/14) what is the output? a)6 b)14 c)7.14 d)0
Answer
# 6
Answer is 7,
as int is the default datatype for numeric values..  Not float.
 
Is This Answer Correct ?    2 Yes 0 No
Sanchit
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
what is the difference between pagecontext and servletcontext? JBA-Infotech4
What is Remote Interface ? CTS4
Can a Byte object be cast to a double value?  2
what is d difference between deep cloning and shallow cloning in core java? Satyam2
WHAT IS THE MEANING OF ALL TYPE OF BUZZWORDS?  4
What is the format of Inner Class after it compiled?  1
How to call static method? Epoch3
How to do validation of the fields in any project ?  2
What is means by DLL file means ? What is the use of DLL file? What are the contents of DLL file?  2
What are the steps to do connection pooling in weblogic? TCS1
Difference between Web-based applications,Client- Server applications and Distributed applications? Infosys2
what is difference betwwen hashmap and hashtable ? Fidelity6
Is JRE required to compile Java files ? HCL3
how to call a method in different package?  4
what is webservices Mind-Tree4
What are order of precedence and associativity, and how are they used?  1
what is difference between perfom() & excute() ? IBM2
How are Observer and Observable used?  2
When you Click a Button, What event will be fired?  2
What is the minimum and maximum length of an identifier? TCS6
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com