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
What is java reflection api?
How garbage collection is done in java?
What are internal variables?
Why are the methods of the math class static?
What is difference between == equals () and compareto () method?
What is Java Reflection API? Why it’s so important to have?
Why we use set in java?
What is the use of singleton class?
Why runnable interface is used in java?
Explain the difference between an Interface and an Abstract class?
Is array a class in java?
What is arraylist e in java?
Why java is considered dynamic?
What state does a thread enter when it terminates its processing in java programming?
Can we clone singleton object?