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
How many ways can an argument be passed to a subroutine and explain them?
Can we call thread start () twice?
Can we use switch statement with strings?
What is a buffer in java?
Explain inheritance in java?
What is the collection interface?
Write a program to find maximum and minimum number in array?
What is the main functionality of the remote reference layer?
What is Java Shutdown Hook?
Explain about core java?
What is an empty string in css?
Which class cannot be a subclass in java?
What is type inference in java8?
Explain the JDB in depth & command line.
How does list work in java?