Why only one Class is public in one file? Explain in
details. Thanks in Advance.
Answers were Sorted based on User's Feedback
Answer / ganesh slv
Sorry for all my answers above.. I misunderstood lot of things.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / madan
public static void main(String args[])
this is command line args.. we need to declare public because, this is the main method, from any class, any package, we have to call, so it will be public.. same as class is also public...suppose, if u declare two class as public, it show error, we have to save a file somefile.java...
i think u understood based on above explanation..
| Is This Answer Correct ? | 0 Yes | 2 No |
What releases of Java technology are currently available? What do they contain?
can u override the start() method of Thread class
What is an empty string in css?
Does java support Operator Overloading?
how session will be expired?
class{ ... ... interface myinterface{ ... ... } abstract class{ .. .. } ... .. .. } is this possible to write "Interface and/ or Abstract class inside a class ? if possible whcich one is possible is only interface? is only abstract?
Can a final variable be manipulated in java?
What are methods in java?
What is the default value stored in Local Variables?
Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?
What is the difference between this() and super() in java?
Is java platform independent?