Static Methods

public class Financial
 {
    public static double percentOf(double p, double a)
    {
       return (p / 100) * a;
    }
    // More financial methods can be added here.
 }

double tax = Financial.percentOf(taxRate, total);


Suppose Java had no static methods. Then all methods of the Math class would be instance methods.
How would you compute the square root of
x?

   Answer:
   Math m = new Math();
   y = m.sqrt(x);