loading...

re: Top 21 Interview Questions for Java Developers You Totally Should Know VIEW POST

FULL DISCUSSION
 

20 "it should be followed by either a catchblock or a finally block" - not needed when doing try-with-resources, where the finally block is implied.

3 could it be that the title is wrong? Maybe you meant "Can we execute code before the main() method?"

code of conduct - report abuse