tag:blogger.com,1999:blog-4796886846449158195.post1029080408496519987..comments2023-09-20T03:48:44.199-07:00Comments on Java Examples: with out main with out static blockLaxman Ghttp://www.blogger.com/profile/11755286384905885095noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-4796886846449158195.post-2740880447979741322011-07-15T10:23:08.333-07:002011-07-15T10:23:08.333-07:00How does this works
can any body explain?How does this works <br />can any body explain?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4796886846449158195.post-83780592394287361242010-03-23T07:50:45.900-07:002010-03-23T07:50:45.900-07:00(without Exception)
public class Withoutmain {
...(without Exception)<br /><br />public class Withoutmain {<br /> static int i=m1();<br /> public static int m1()<br /> {<br /> System.out.println("hi I can print");<br /> System.exit(0);<br /> return 10;<br /> <br /> }<br />}<br />o/p:hi I can printUnknownhttps://www.blogger.com/profile/09032611811438321499noreply@blogger.com