@Override
public IBinder onBind(Intent intent) {
// TODO: Return the communication channel to the service.
throw new UnsupportedOperationException("Not yet implemented");
}
This method has an IBinder as return value, but it just throws an exception, my question is not about services, my question is that why this method does not show a compiler error?
and what is different if we write return null( if we do not want to implement this method) or we write throw exception?