Friday, September 11, 2009

Java Quiz

In order for a method to be inlined, the method must NOT be overridable (virtual in C++ terms).

Under what 5 conditions is a method not overridable?

1. The method is explicitly marked as "final".
2. The method is _________.
3. The method is _________.
4. The method's class is _________.
5. The method's class is _________.

The answer is on the internet if you want to cheat.

No comments: