Jul 17 2009 01:50 PM 2373 2 getInstance() sanjeeb_1068 Why getInstance() is written after Class.forName( )? sreenivasgowd Profile Answers by sreenivasgowd Questions by sreenivasgowd Sep 5th, 2009 GetInstance() means we are creating object for loading of the class, thats why we are using getInstance() after loading of the class.ex: Class c=Class.forName("addition"); c.getInstance();//it creates the object of addition class Answer Question Select Best Answer
Jul 17 2009 01:50 PM 2373 2 getInstance() sanjeeb_1068 Why getInstance() is written after Class.forName( )? sreenivasgowd Profile Answers by sreenivasgowd Questions by sreenivasgowd Sep 5th, 2009 GetInstance() means we are creating object for loading of the class, thats why we are using getInstance() after loading of the class.ex: Class c=Class.forName("addition"); c.getInstance();//it creates the object of addition class Answer Question Select Best Answer
sreenivasgowd Profile Answers by sreenivasgowd Questions by sreenivasgowd Sep 5th, 2009 GetInstance() means we are creating object for loading of the class, thats why we are using getInstance() after loading of the class.ex: Class c=Class.forName("addition"); c.getInstance();//it creates the object of addition class