Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
> I have a question reg. public.static.void.main(). > main() method should be declared as static as we are accessing the > Then static methods can access only static methods and static > How is it possible for the public.static.void.main() > Regards,
public class Test { private String tempString; public Test(String inString) { public static void main (String[] args) { public String getTempString() { public void setTempString(String istr) { Replies: |
Sponsored Links
|