employer cover photo
employer logo
employer logo

Excel Software Solutions

Is this your company?

Excel Software Solutions interview question

void get(String s){ syso(s); } void get(Object o){ syso(o); } psvm(String[] args) { get(null); }

Interview Answer

Anonymous

16 Mar 2017

it will throw an exception that non-static method cannot be referenced as static.. if we correct the code it will call get(String s)