briefley expalin about the packages
Answers were Sorted based on User's Feedback
Answer / mayank sharma
file 1
package ListPkg;
public class List { ... }
class ListNode {...}
file 2
package ListPkg;
public class NoNextItemException { ... }
file 3
public class Test { ... }
class Utils { ... }
file 4
class Test2 { ... }
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / geetha
A package is a grouping of related types providing access protection and name space management.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / 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 |
. What are the differences between constructor and method of a class in Java?
Explain covariant method overriding in java.
why an outer class cannot be declared as private?
How to print an arraylist in java?
What is the difference between state-based unit testing and interaction-based unit testing?
Explain the difference between hashmap and hashtable in java?
What is stringjoiner ?
What is the lifetime and scope of a variable?
Explain what is Marker interface?
What is the purpose of main function in java?
Which is a valid identifier?
What is java developer skills?