Generally in plain jdbc , we handle the ORA-00942 table or view does not exist error using try catch block like below
ORA-00942 table or view does not exist
try{ //this code throw