Domanda di colloquio di BT Group

java question inheritance,multi threading,core java. 1. public class Test { public static void main(String[] args) { Test test=new Test(); System.out.println("1"); try{ return; }finally{ System.out.println("2"); } System.out.println(test instanceof TP1);//line 1 }

Risposta di colloquio

Anonimo

10 dic 2016

it is a compiler error line 1 is unreachable code

2