Why only one Class is public in one file? Explain in
details. Thanks in Advance.
Answer Posted / mahendra
In an aplication public class is main class with main()
method as entry point
java compiler allows only one public class in file
Is This Answer Correct ? | 12 Yes | 8 No |
Post New Answer View All Answers
Is null a string?
Why do we need wrapper class?
Explain a few methods of overloading best practices in java?
What is a boolean used for?
How do you reverse a string in java?
How can you set an applet’s height and width as a percentage?
Write a program to check string is palindrome without using loop?
What is the map interface in java programming?
What is wrapper class example?
How does the garbage collector works in java?
Why is string buffer better than string ?
What is a local, member and a class variable?
What’s the difference between unit, integration and functional testing?
Explain the difference between hashmap and hashtable in java?
What is an exception in java?