Answer Posted / chandrarekha
collection of classes and interfaces which can be reused in
other applications are called packages...
java.lang,java.net,java.awt,java.util,java.io...
user defined packages can also be created
package <name>
//class or interface definitions....
class A
{
....
}
class B
{
...
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Why is it important to initialize a variable?
If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?
I want to re-reach and use an object once it has been garbage collected. How it's possible?
What is the use of a conditional inclusion statement in Java ?
Why do we need singleton class?
What are the access modifiers in java?
Write a java program to find the route that connects between Red and Green Cells. General Rules for traversal 1. You can traverse from one cell to another vertically, horizontally or diagonally. 2. You cannot traverse through Black cells. 3. There should be only one Red and Green cell and at least one of each should be present. Otherwise the array is invalid. 4. You cannot revisit a cell that you have already traversed. 5. The maze need not be in the same as given in the above example
How many types of variables are there?
What happens if we override only equals?
Explain the protected field modifier?
What is the difference between yield() and sleep()?
What is nested loop? What is dangling else condition in it?
Define locale.
What is the maximum size of list in java?
What is a package in java? List down various advantages of packages.