This week's giveaway is in the Testing forum. We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line! See this thread for details.
4. Specifying package awt ;(at the top of Source file) a. Results in compile time error cause java already defines a awt package b. Specifies that all your classes in this file should go into Java's awt package c. Specifies that all your classes in this file should go into your own awt package (*) Imports all the classes of your own awt package I feel (d) is not right. You cannot give a package name of a existing java package. How do other feel.
I think the whole idea with the com.mycompany stuff has to do with anybody can use the same name without a problem. So I'm gonna go with c. Has anyone tried this in the compiler? (I'm feeling really lazy tonight)
Dear Shivprasad, So what is the answer. I am really confused. My only point here is that since java has already a awt package, if i create my own awt package, will the compiler allow and if it allows, which of the options are right.