What are packages and name a few?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How is treeset implemented in java?

494


Can sleep() method causes another thread to sleep?

569


What are the access modifiers in java?

589


What is the exact difference in between Unicast and Multicast object?

1513


How do you replace all in word?

533






What is native method in java?

568


23. Storage space in java is of the form Stack Queue Heap List 24. What is java code embedded in a web page known as Applets Servlets scriptlets snippets 25. Which of the following attributes are compulsory with an tag?. code,height & width. 26. What does 'CODEBASE' in an applet tag specify?. Files absolute path.

2062


What are data types in oop?

555


What is threaded programming and when is it used? : Java thread

535


Do you know why doesn't the java library use a randomized version of quicksort?

555


Why we use multi threading instead of multiprocessing?

576


Define jit compiler?

662


What is return type in java?

635


What is indexof?

547


What is difference between checked and unchecked exception in java?

582