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
what is the output ?  Math.floor(-2.1)
a)2
b)-2
c)-3.0
d)0
 Question Submitted By :: Sasirekha
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is the output ? Math.floor(-2.1) a)2 b)-2 c)-3.0 d)0
Answer
# 1
answer is -3.0
 
Is This Answer Correct ?    4 Yes 0 No
Sasirekha
 
  Re: what is the output ? Math.floor(-2.1) a)2 b)-2 c)-3.0 d)0
Answer
# 2
Math.floor(x) function will return the nearest integer which
is less than the passed value x.

Since -3.0 < -2.1,
-3.0 is the nearest smallest integer.

so answer is c)-3.0
 
Is This Answer Correct ?    0 Yes 0 No
Amarnath88888
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
what is session facade ?  2
I need to know about complete topic in java's collections i with an examples TCS1
How do you set security in applets? Wipro1
What is the difference between this() and super()? TCS11
what is unreachable code problem in multiple catch statements  2
What is method Overloading in the perspective of OOPS?  4
What is the smallest package in Java API?  4
Name two subclasses of the TextComponent class?  2
How can we find size of the object ? RazorSight1
How a class can implement an interface? SysArc4
What is meant by class loader and how many types are there? Apple1
In Inheritence concept, i have a static method in super class and i am inheriting that class to one sub class.in that case the static method is inherited to sub class or not???? Accenture8
Have you worked on bits programming? examples?What is bit? How many bits are there in the byte?  1
What is System class and its purpose?  2
What is the default initialized value of String type variable?  3
What is cloneable interface?  5
How can you debug the Java code? BirlaSoft3
I have 100 records in a table with two rows. I need to display 10 records per page like Google Search. I need only the Logic(Pagination) in Pure Java. No JSP and all..Thanks in Advance... Cybernet2
How 'java' got its name and what it stands for?  5
What is Exception handling in Java How do you handle run time errors please explain with an example TCS2
 
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