I was referring some open source java code of android. In one of the classes, I saw a method call to another class. The method called was an abstract method inside an abstract class. As is expected, the abstract method do not have any implementation. But, to my wonder, this abstract method returns a List. I do not know, without having any implementation(and return statement) for a method, how this method returns a List?
Please refer the code attached.
Any help in this regard would be appreciated.
// Calling Method
final List<ResolveInfo> apps = manager.queryIntentActivities(mainIntent, 0);
//Called Method inside another abstract class
public abstract List<ResolveInfo> queryIntentActivities(Intent intent,