Set1 - Java
Error: 1. package utils; public class test { public static void main(String[] args ) { // TODO Auto-generated method stub System. out .println(10/00); //error System. out .println(10/0.0f); //infinity } } 2. package utils; public class duper { public duper ( int a ) {} } package utils; public class sub1 extends duper { public static void main(String[] args ) { new Super (); } } o/p: //Exception in thread "main" java.lang.Error: Unresolved compilation problem: //Super cannot be resolved to a type // //at utils.sub1.main(duper.java:13) 3. public static void main(String[] args ) { int a ; a = a +1; System. out .println( "value of a is: " + a ); } o/p: //Exception in thread "main" java.lang.Error: Unresolved compilation problem: . Garbage Collector: 1. difference between system.gc and runtime.gc Both are garbage collector but system.gc is gene...