Class Definition Java Tutorial

You can prevent others from extending your class by making it final using the keyword final in the class declaration.

final class FinalClass{
}