What are packages and name a few?

Answers were Sorted based on User's Feedback



What are packages and name a few?..

Answer / niranjanravi

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 ?    1 Yes 0 No

What are packages and name a few?..

Answer / chandrarekha

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 ?    1 Yes 0 No

What are packages and name a few?..

Answer / vijayakumar chinnasamy

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

What are packages and name a few?..

Answer / puneet

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

Post New Answer

More Core Java Interview Questions

What is use of static method?

0 Answers  


Explain the use of javap tool.

0 Answers  


How do you check if an arraylist is not empty?

0 Answers  


Write an algorithm program in java for the following question.. In a VLSI design techniques,they used rectangles to design circuits. EVery rectangle is to be placed according to x,y coordinates. Check whether or not two rectangles overlap each other. Here overlapping of rectangles is acceptable, if 1) one rectangle intersect with other. 2) one rectangle fully covers other. The time of algorithm should not exceed o(n logn).

0 Answers  


what are the different access specifiers that can be used by interfaces and abstract classes? can anyone give me detailed description on this

11 Answers   IBM, L&T,






What is qualitative variable?

0 Answers  


Is array size fixed in java?

0 Answers  


What is Java Shutdown Hook?

0 Answers  


What is "Java Native Interface" and how to use it?

1 Answers   IBM,


static inner classes means..?

1 Answers  


What is time complexity algorithm?

0 Answers  


Write code of any action class?

0 Answers  


Categories