• www.uptuexam.com
  • GBTU Results 2014
  • MTU Results 2014
  • UPTU Circulars
  • COP Result 2012,13,14
  • UPTU Previous Papers
  • GATE study material
  • Robotics Projects
Thank you for visiting www.UPTUexam.com " Free download Exam materials, previous year question papers, free ebooks & Providing Important Questions To Do their Exams Well and Totally a FREE SERVICE for all engineering streams (B.Tech)."

Anonymous Block


Anonymous Block

Is a convenience provided to java developers to define statements common to all constructors of a class. At the time of compilation statements of anonymous block are moved at the beginning of each constructor by the compiler.




OR

 The same program we can also write like this:



















No comments:

Post a Comment