ceil()

The ceil() method returns the smallest integer, as a double, that is greater than or equal to the argument and equal to the nearest integer value. In other words, the argument is rounded up to the nearest integer equivalent.All the following calls to Math.ceil() return the double value 9.0:
Math.ceil(9.0) // result is 9.0
Math.ceil(8.8) // rises to 9.0
Math.ceil(8.02) // still rises to 9.0

Reply
**Posted By:**
Name:Rajesh Kr

abs()

Reply
**Posted By:**
Name:Rajesh Kr

Methods of the java.lang.Math Class

Reply
**Posted By:**
Name:Rajesh Kr

Using the Math Class

Math class is bassically use for the Write code using the following methods of the java.lang.Math class: abs, ceil, floor, max, min, random, round, sin, cos, tan, sqrt.
In the java language that apckage defines
classes that are fundamental to the Java language.
For this reason, all classes in the java.lang package are imported automatically, so
there is no reason to write an import statement for them.
The java.lang package also contains the Math class, which is used to perform
basic mathematical operations. The Math class defines approximations for the mathematical constants pi and e. Their signatures are as follows:
public final static double Math.PI
public final static double Math.E

Reply
**Posted By:**
Name:Rajesh Kr

Important Methods in the StringBuffer Class

Reply
**Posted By:**
Name:Rajesh Kr

The StringBuffer Class

String buffur class is the most mportant thing in the string class .its mianly use for the mofifications in the string of charectors.String objects are immutable,objects of type stringBuffer can be modified over and over again without leaving behind a great effluence of discarded String objects.

Reply
**Posted By:**
Name:Rajesh Kr

Creating New Strings

Reply
**Posted By:**
Name:Rajesh Kr

Important Facts About Strings and Memory

Reply
**Posted By:**
Name:Rajesh Kr

Strings Are Immutable Objects

Reply
**Posted By:**
Name:Rajesh Kr

Overriding and Return Types

As we know that When a subclass wants to change the method implementation of an inherited method,
the subclass must define a method that matches the inherited version exactly.an exact match means the arguments and return types must be identical.We know that overloaded methods can change the return type, but overriding methods cannot.

Reply
**Posted By:**
Name:Rajesh Kr