The Artima Developer Community
Sponsored Link

Java Answers Forum
one public class

1 reply on 1 page. Most recent reply: Apr 18, 2010 12:11 PM by Ramesh K

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
dilip agarwal

Posts: 8
Nickname: dagarwal17
Registered: Mar, 2010

one public class Posted: Mar 22, 2010 2:56 PM
Reply to this message Reply
Advertisement
I want to know that why it is necessary that there can be only
one public class per source code file and the name of the file must be same as the name of public class in java


Ramesh K

Posts: 3
Nickname: ramesh009
Registered: Apr, 2010

Re: one public class Posted: Apr 18, 2010 12:11 PM
Reply to this message Reply
Why one public is JVM is out side of our directory it should come to our directory and it has to execute our main class. So there should be public class and even it should be as a file name...

Flat View: This topic has 1 reply on 1 page
Topic: to set the time for response Previous Topic   Next Topic Topic: run time error

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use