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   SiteMap shows list of All Categories in this site.
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 are packages and name a few?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What are packages and name a few?
Answer
# 1
packages are separate naming context fora group of classes 
and interfaces.It provides a high layer of access 
protection and name space management.Theya re also used to 
organise related classes and interfaces into a single API 
unit and to control the accessibility of these classes and 
interfaces.
java.lang,java.lang.Throwable.javax.servlet.java.rmi
 
Is This Answer Correct ?    0 Yes 0 No
Niranjanravi
 
  Re: What are packages and name a few?
Answer
# 2
collection of classes and interfaces which can be reused in 
other applications are called packages...
java.lang,java.net,java.awt,java.util,java.io...
user defined packages can also be created
package <name>
//class or interface definitions....
class A
{
....
}
class B
{
...
}
 
Is This Answer Correct ?    0 Yes 0 No
Chandrarekha
 
 
 
  Re: What are packages and name a few?
Answer
# 3
Collection of class and interfaces stored under specific 
name is called as packages.

eg: ArrayList,Vector,HashTable are class available in the 
packahe java.util.

some of the packages are,
  java.lang, java.io, 
java.util,javax.servlet.http.HttpServlet.. etc.
 
Is This Answer Correct ?    0 Yes 0 No
Vijayakumar Chinnasamy
 
  Re: What are packages and name a few?
Answer
# 4
package is just a namespace under which the
classes,interfaces are kept and they on the filesystem where
the application is running are just a folder and maintains
the files anf folders and help us to implement the
inheritance stuff and you can have 2 files with the same
name in two different packages which should clash, you can
call the class with full name packagage1.classname

Note Web-inf folders,Lib folders are not packages.
java.lang, java.util,java.io;
 
Is This Answer Correct ?    0 Yes 0 No
Puneet
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
Why Java is a platform independent language? Zensar4
Marker interface means , interface which has no methods.Then what is the necessity of its usage.I read "it tells the compiler that it should be treated differently ". "It is used to store state of an object". But still am not clear.Please explain clearly.  1
why ,we are using jsp and html.which one is better? Photon1
how can i cal servlet from jsp page?how can i pass variablesfrom the jsp that servlet can access? Verizon1
What classes of exceptions, thrown by a throw statement?  2
what ide u r using and wat version, how wil u build the project etc ?  2
explain the classification of exception and hoew to handle the exceptions  2
How GC (Garbage Collector) knows the objects reference is unused.Whether GC removes the unused object Parmanently or it maintains something.  2
when,where and how to use abstract class and interface  2
how many ways to create Thread and which one is good? runnable interface ot Thread class? Satyam3
What methods are called, When we navigate from one applet to another applet?  1
How to override a equals() method and what is the use?  1
What is Interface? BMC5
How can you reverse a string?  4
whst is encapsulation?when u encpsulate actually while devoloping code? AMDOC5
whays is mean by inner class? HCL3
How to send a request to garbage collector?  3
how to use this key word in java programming?  5
Which class is the immediate superclass of the Container class?  1
Is Java is 100% pure OOPS? Explain?  15
 
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