Answer Posted / vishwanath
A default package is the package, which a java class
belongs to, when theres no explicit package statement like
package foo;
----------
eg:
This class below is set to belong to the default package.
class Foo
{
}
-------------
Design considerations:
Its not a good design choice though to have it this way,
a java class belonging to the default package
Reason:
1) Bad modularizing
2) problems with access specifiers arise
etc...
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
Is null a string?
What is * argv?
What is variable explain?
How can I become a good programmer?
Can an integer be a string?
Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?
What happens if main method is not static?
What is the purpose of javac exe?
Is a class an object?
Can vector have duplicates in java?
What is the importance of static variable?
What is a void in java?
I want to persist data of objects for later use. What is the best approach to do so?
Is c better than java?
Is there a sort function in java?