In: Computer Science
This question is all about Java
1. If we need to import multiple classes from different packages do we need an import line for each? Why?
2. How does dot notation differ when invoking methods & importing packages?
3. How does * work when importing packages?
4. We have to import the Scanner class in order to use its methods. Why not for String or System or Math class?
5. What package are each of the classes found in?
6. We need an object to invoke (call) the String & Scanner methods. Why don't we need to instantiate an object to invoke the Math methods?
7. List the Math methods & their parameter