Math class is declared final, so you cannot extend it.
Constructor of Math class is private, so you cannot create an instance.
Methods and constants from Math class are static,
publicclass MainClass{
publicstaticvoid main(String args[]) {
System.out.println(Math.E);
System.out.println(Math.PI);
System.out.println(Math.abs(-1234));
System.out.println(Math.cos(Math.PI/4));
System.out.println(Math.sin(Math.PI/2));
System.out.println(Math.tan(Math.PI/4));
System.out.println(Math.log(1));
System.out.println(Math.exp(Math.PI));
for(int i=0;i<3;++i)
System.out.print(Math.random()+" ");
System.out.println();
}
}