public class Test{ public static void main(String[] args) { try{ wait(); }catch(InterupttedException e){ System.out.println(e); } } output of this code?
Anonymous
Cannot make a static reference to the non-static method wait() from the type Object
Check out your Company Bowl for anonymous work chats.