Answer Posted / glibwaresoftsolutions
The benefits of defining packages in Java are numerous.
Name conflicts are avoided by packages.
The package makes access control simpler.
Additionally, we can have hidden classes that are utilized by the package but are not visible from the outside.
The linked classes are easy to find.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
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
What is void keyword?
Can you call a method on a null object?
Does substring create a new object?
What are new features introduced with java 8 ?
I want to persist data of objects for later use. What is the best approach to do so?
Are generics important java?
What are variable arguments or varargs?
How to perform selection sort in java?
What is the difference between applet and application?
Can substring create new object?
What is java virtual machine and how it is considered in context of java’s platform independent feature?
What is module in oop?
I want my class to be developed in such a way that no other class (even derived class) can create its objects. How can I do so?
Can sleep() method causes another thread to sleep?