INIT Block

  1. class Temp
  2. {
  3. {
  4. System.out.println("Welcm to my Temp Cls");
  5. }
  6. Temp (String s1, String s2)
  7. {
  8. System.out.println("2 para constrctr invoke");
  9. }
  10. Temp (String s)
  11. {
  12. System.out.println("1 para constrctr invoke");
  13. }
  14. Temp ()
  15. {
  16. System.out.println("no para constrctr invoke");
  17. }
  18. public static void main (String ...a)
  19. {
  20. new Temp();
  21. new Temp("UVES");
  22. new Temp("Uves","Uv");
  23. }
  24. }

| Copyright ©2016 | All Rights Reserved |
| Design by Uves Khan |

Free Web Hosting