Answer Posted / amrutha
A package contains a set of classes and interfaces.
package packagename;
interface interfacename{
}
class Classname{
}
class Test{
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What modifiers are allowed for methods in an interface?
What kind of variables can a class consist?
What are the advantages of compiled language?
What will happen when using pass by reference in java?
How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?
What are the rules for variable declaration?
What is the size of arraylist in java?
What is a super method?
What is the static field modifier?
What is the difference between procedural and object-oriented programs?
What is the use of default method in interface in java? Explain
What is difference between word and integer?
What are methods of a class?
Can we write any code after throw statement?
What is jrmp?