This is a very important concept in java: inheritance. "Extends" is a keyword meaning that the TEST class inherits the fields and methods of AnotherClass. TEST is a subclass of AnotherClass. For example, you might have a class called Shapes with subclasses of Circle, Square, Triangle, etc. They all have areas, but do not use the same formula to calculate the areas. This is object oriented programming (OOP). You should read about it. Remove "nospam" from my email address to reply.