What is the warning that is there on the reference variable sc(On eclipse ide)?
On hovering mouse on sc ,it displays -Resource leak: sc is never closed.
i.e. Scanner sc=new Scanner(System.in);
What is the warning that is there on the reference variable sc(On eclipse ide)?
On hovering mouse on sc ,it displays -Resource leak: sc is never closed.
i.e. Scanner sc=new Scanner(System.in);