What is meant by packages?
Answers were Sorted based on User's Feedback
Answer / ranganathkini
Packages are a way of grouping classes with related
functionality there by possible avoiding class name
collision and making it easier for the class library to be used.
Is This Answer Correct ? | 18 Yes | 4 No |
Answer / ravikiran(aptech mumbai)
packages are the namespaces to for a group of classes and
interfaces
Is This Answer Correct ? | 11 Yes | 3 No |
Answer / dhivyashree.p
packages are the collection of pre-defined classes and
objects. which is used to reduce the size of the program and
use the functions in the predefined classes in our own
function simply by using the format with appropriate name to
use the required classes.
Is This Answer Correct ? | 8 Yes | 4 No |
11. static class A { 12. void process() throws Exception { throw new Exception(); } 13. } 14. static class B extends A { 15. void process() { System.out.println(”B”); } 16. } 17. public static void main(String[] args) { 18. new B().process(); 19. } What is the result? 1 B 2 The code runs with no output. 3 Compilation fails because of an error in line 12. 4 Compilation fails because of an error in line 15.
Is object a data type in java?
Can we sort arraylist in java?
Explain throw keyword in java?
What is the difference between import java.util.date and java .util?
What is a local class in java?
How does static modifier work?
What is difference between checked and unchecked exception in java?
If a method is declared as protected, where may the method be accessed in java programming?
what is tempplate pattern
Explain purpose of sleep() method in java?
What is difference between null and void?