This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
if i m using only one class suppose java.util.Vector in my code but put import statement as import java.util.*; in place of import java.util.Vector; does it make any difference in performance or in any other way
During runtime you'll notice no difference whatsoever (the .class file wouldn't differ either) but during compile time the 'import java.util.*' makes the compiler drag in *all* classes from that package, ready to be scrutinized and inspected when needed, so some performance degradation would be noticable during compilation. If you just need one or a couple of classes from a package it is considered 'well mannered' to explicitly import them instead of importing the entire package. kind regards