- Published on
一道很考验java功底的题目
- Authors
- Name
- Lucas Xu
- @xianminx
Lucas Xu
问题 Challenge: can you write code that invokes foo()
?
class Impossible {
public Impossible() {
throw new AssertionError("you cannot instantiate me");
}
public void foo() {
System.out.println("The impossible is possible!");
}
}
这是来自Android team 的几位工程师的博客。众志成城,他们想出了很多解法。大家发挥一下想象力,看是不是可以找到解法。