Yamini,
Try reading the API Spec once in a while. You ask a lot of questions that can be answered very quickly by doing so (much faster than the time it takes for you to post and get a reply). I don't mean to discourage you from posting here, but I want to encourage you to use tools like the
API Spec and the
JLS. The better you become at using those tools, the better programmer you'll become.
To answer your question, from the API Spec for
Math:
Returns the closest long to the argument. The result is rounded to an integer by adding 1/2, taking the floor of the result, and casting the result to type long. In other words, the result is equal to the value of the expression:
(long)Math.floor(a + 0.5d)
Corey