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   SiteMap shows list of All Categories in this site.
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
 
when a servlet sends request for first time it uses the follwing methods a)init b)doget() c)dopost() d)service Accenture1
What is the return type of read()?  2
What are the parameters used in Connection pooling? IBM1
What is Ideal Design of Class?  2
How many statements can be created with one connection in jdbc? Polaris2
Given: 11. public static void main(String[] args) { 12. Integer i = uew Integer(1) + new Integer(2); 13. switch(i) { 14. case 3: System.out.println(”three”); break; 15. default: System.out.println(”other”); break; 16. } 17. } ‘What is the result? 1 three 2 other 3 An exception is thrown at runtime. 4 Compilation fails because of an error on line 12.  2
What is AppletStub?  1
What is the life cycle of an Applet ?  1
Can applet in different page/s communicate with each other?  1
Does garbage collection guarantee that a program will not run out of memory?  1
String is an immutable object. Then how can the following code be justified. String s1 = ?ABC?; String s1 = s1+?XYZ?; s.o.p(s1); The output is ABCXYZ, which is the value of s1 ? Flextronics5
class A{ m2(){ } } class B extends A{ m2(){ } } class c extends B{ m2(){ } } class my_class extends c{ m2(){ } pulic static void main(){ ...My_class a = new my_class(); super.super.super.m2(); is this is leagal if not find what is the legal procedure in order to call A's version of m2(); } Logica-CMG8
what is the difference between @include page and @include file  2
What is the difference between pageContext and page implicit objects in jsp? Merrill-Lynch6
What is the Set interface?  2
What are different types of access modifiers?  1
How to create an instance of a class without using "new" operator? Plz help me out properly.Thank u. CSC8
What method is used to know the status of Checkbox(i.e it is checked or unchecked)?  1
what is mutability?which one is mutable String or StringBuffer?and why?give examples of each which shows the mutability of each String or StringBuffer  2
Can you run the product development on all operating systems ?  1
 
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