An abstract method is the one which is declared without an implementation.If a class includes abstract methods, the class itself called abstract class. When a class extends abstract class, the subclass usually provides implementations for all of those abstract methods which can return values.
you don't understand the concept and usage of abstract method and abstract class. It's is quite normal for declaring a abstract method with a return type. it is not a design flaw.
Declaring a return type or value is totally different then actually returning a type or value like some abstract methods do. So if I dont understand the concept and usage of abstract methods, then explain to me why abstract methods in java.nio.channels.Selector actually return values and types and not just declare the return type or value.
java.nio.channels.Selector is an abstract class itself,which can not be instantiated by calling it's protected constructor 'new Selector()'. so, you cann't even get an instance of the abstract class java.nio.channels.Selector, how can you managed to make a call to it's abstract methods and get return values from it's abstract methods?
Tags
Use the search field to
find all types of content in My developerWorks with that tag.
Use the slider bar to see more or fewer tags.
Popular tags shows the top tags for this particular type of content or application that you're viewing.
My tags shows your tags for this particular type of content or application that
you're viewing.