ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
what is a package?
 Question Submitted By :: Sai
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is a package?
Answer
# 1
The package is a Java namespace or part of Java libraries. 
The Java API is grouped into libraries of related classes 
and interfaces; these libraries are known as packages.
You can create your own packages to bind all ur classes at 
one place.
 
Is This Answer Correct ?    1 Yes 0 No
Kavitha
 
  Re: what is a package?
Answer
# 2
Package in java is a collection of classes and interfaces 
that can be reused in any application or applet.
 
Is This Answer Correct ?    0 Yes 0 No
Chandra Rekha
 
 
 
  Re: what is a package?
Answer
# 3
Java provides a mechanism for partitioning the class name 
space into more manageable chunks. This mechanism is the 
PACKAGE.
 
Is This Answer Correct ?    0 Yes 0 No
Sudhakar
 
  Re: what is a package?
Answer
# 4
A Package is a collection of Classes Interfaces that 
provides a high-level layer of access protection and name 
space management.
 
Is This Answer Correct ?    0 Yes 0 No
Mahipal Reddy.kaitha,hyd
 
  Re: what is a package?
Answer
# 5
Hi...
 A package is nothing but collections of classes and 
interfaces.
example:java.lang,java.util,java.applet,java.awt,java.net,ja
va.io etc...
 
Is This Answer Correct ?    1 Yes 0 No
Devarathnam C,kotagudibanda(po
 
  Re: what is a package?
Answer
# 6
package defines a name space for members and methods inside 
a class
 
Is This Answer Correct ?    0 Yes 0 No
Ravikiran
 
  Re: what is a package?
Answer
# 7
A package in java is an encapsulation mechanism that can be
used to group related classes,interfaces,and subpackages.
 
Is This Answer Correct ?    0 Yes 0 No
Ramesh
 
  Re: what is a package?
Answer
# 8
package is a collection of classes and interfaces.
whatever classes we used in program they are belongs to the 
particular package which we have defined
 
Is This Answer Correct ?    0 Yes 0 No
Shripal
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
what is main purpose of interface? Accenture2
Is JRE required to compile Java files ? HCL3
what is the use of finalize()Method please explain with an example  2
what is a thread? IBM10
A abstract class extending an abstract class.Super class has both abstract and non-abstract methods.How can we implement abstract and non-abstract mehtods? Explain with snippet  3
strings in java are objects.why?  2
what are the new features available in java 1.5 version? Motorola2
How are this and super used?  6
How Applets & Servlets will communicate with each other?  2
real time example for deadlock,starvation,livelock  4
what is difference between servletconfig and servletcontext? AMDOC3
When does the compiler supply a default constructor for a class? TCS8
different types of threads? TCS7
How to create an instance of a class if the class has private constructor?  2
What is HashTable?  3
33. try { 34. // some code here 35. } catch (NullPointerException e1) { 36. System.out.print(”a”); 37. } catch (RuntimeException e2) { 38. System.out.print(”b”); 39. } finally { 40. System.out.print(”c”); 41. } What is the result if a NullPointerException occurs on line 34? 1 c 2 a 3 ab 4 ac  1
Is it possible to create Userdefined Unchecked Exception also?If Yes, give an example?  2
explain about casting of objects?  4
what is finalmethod & final variable with example? HP2
what is polymorphism?  2
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com