Java - Interview Questions and Answers for 'Package' | Search Java Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com
Share

Search Java Interview Questions


 2137 questions in repository.
 There are more than 200 unanswered questions.
Click here and help us by providing the answer.
Label / Company      Label / Company / Text

   



BuggyBread - Search Java Classes and Packages



Link: http://javasearch.buggybread.com/
   




Interview Questions and Answers for 'Package' - 7 question(s) found - Order By Newest

 Q1. What is a package and what are its advantages ?Core Java

Ans. Package is a namespace that organizes a set of related classes.

Advantages of Packages

1. Better Organization of classes.
2. Saves from the problem of duplicate names as duplicate class names are allowed across different packages.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve     package  advantages of packages     Moving Picture Company (MPC)      Basic


 Q2. Do we need to import java.lang package ?Core Java
Anonymous
Ans. No, It is loaded by default by the JVM.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve     java   jvm   java.lang.package   yes-no


 Q3. What is a Cursor ?Database
Admin
info@buggybread.com
Ans. It's a facility that allows traversal over the records pulled from a table or combination of tables. Its like iterator in Java.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve     databases   sql   cursors   packages     Jade Global  Paychex  Credence Analytics  CMSS Pvt Ltd      basic        frequent


 Q4. Does importing a package imports all its sub packages too ?Core Java2017-01-12 11:02:13

Ans. No, but we can use wild card (*) to do so

For example -

import java.util.*

will import all packages with name starting with java.util

 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve     package   import packages     HCL Technologies      basic


 Q5. Is it a good practice to use Asterick(*) in import statement to load multiple packages with single import statement ?Core Java2017-01-12 11:04:19

Ans. No, we should be lean in loading only packages which are required. Loading packages which are not being used result in memory overheads.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve     import  import packages     HCL Technologies


 Q6. What is RPM ?Tool2017-03-06 14:16:31

Ans. Redhat Packaging system or rpm is a Package Manager or type of Package Management system extensively used for Linux systems.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve     rpm  package management


 Q7. Which of the following wildcard is used to import multiple packages at once ?Core Java
a. .
b. ?
c. *
d. &

Ans.c. *



Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner



comments powered by Disqus
 

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked:
         

X Close this

X Close this

Help Us Improve.
Please share your
interview experience.

Company Name:   


Questions Asked: