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 are the data types supported by java? What is autoboxing and unboxing?
Can we execute java program without main method?
If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?
What is variable and its types?
What is the difference between abstract class and interface1? What is an interface?
Which is best ide for java?
what is meant wrapper classes?
what state does a thread enter when it terminates its processing? : Java thread
What does 3 dots mean in java?
Can we pass null as argument in java?
How do you remove an element from an arraylist in java?
What is the use of set in java?
What are the 5 types of research methods?
How do you escape json?
Which programming language is most secure?