Originally posted by Nikhil Reddy Lingala:
Hello all..
I have a doubt as to what happens to a class when we import an another class in some package...
I have read some where that importing a package saves us from lot of typing.. does that mean.. the code of the class that we are importing get adds up in the class we are writing??
does the code bits below represent the same thing?
//code bit 1
import java.util.Date;
class MyDate{
}
//code bit 2
class MyDate extends java.util.Date{
}
Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Originally posted by Raghavan Muthu:
Remember, you have to type the fully qualified class name when you have both the java.util.List and java.awt.List classes in your program
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |