Java   View all facts   Glossary   Help
specification > class > Math
Next classnested class    Upclass    Previous classmain class   

Math comparison table
Subject is an instance of is a subtopic of contain is a kind of have has definition is partitioned into
class Classesdata associated with each objectspecificationa unique name since somebody in the future might want to import the packages containing both classes and hence create a name clashA template that describes the data and behaviour of its instances called objectsabstract class, concrete class
MathclassExample Classesbuilt-in class methods:
  • log(a) - natural logarithm of a
  • abs(a) - absolute value of a
  • max(a,b) - maximum of a and b
  • pow(a,b) - a to the bth power
  • sin(a) - sin of a radians
  • random() - a random number between 0.0 and 1.0
 specification  

Next classnested class    Upclass    Previous classmain class