throw new RuntimeException("Stub!");
几乎所有的android源码实现都有throw new RuntimeException("Stub!");这么一段代码,
我在自学android,发现看不太懂,举个简单的例子
public boolean startActivityIfNeeded(Intent intent, int requestCode) {
throw new RuntimeException("Stub!");
}
这个方法的返回值为boolean,是怎么返回的呢?
RuntimeException源码
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-