I do not want my class inherited by other class then What should I do ?
Answer : Define class with final keyword. Please see below:
final class Test { static void testMethod() { System.out.println("Multiple class test"); } }
Answer : Define class with final keyword. Please see below:
final class Test { static void testMethod() { System.out.println("Multiple class test"); } }