Answer Posted / vijayakumar chinnasamy
If a java source code file contain public class then the
source code file name should be public class name other
wise compiler error.
if a java source code does not contain the public class
then the name may be class name or anything ,not a problem.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the features of junit?
Explain the scope or life time of class variables or static variables?
Differentiate between a class and an object.
how does multithreading take place on a computer with a single cpu? : Java thread
What are the advantages and disadvantages of object cloning?
how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion... ANS:--- >executeupdate method is having boolean return type, if anything goes wrong in data insertion or data updation, it would return false. otherwise, if it successfully inserts data into the database, it would return true NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT
Can we overload run() method in java?
What is the use of math abs in java?
Explain treeset?
Can we make constructors static?
What is default size of arraylist in java?
How do I get the | symbol on my keyboard?
How an object is serialized in java?
Explain where variables are created in memory?
Explain serialization and deserialization in java?