can we use abstract and final both with a method?
No, as for an abstract method we have to provide implementation in subclass. To do this abstract method have to be overridden but final methods cannot be overridden. Example abstract class Show{ //abstract final method declaration abstract final void show(); } public class Main extends Show { public static void main(String[] args) { System.out.println("Hello World"); … Read more