Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

i wonder what is diffrent between 2 options.

807580Apr 14 2010 — edited Apr 14 2010
i wonder what is diffrent between 2 options.

case 1.
import java.util.*;

case 2.
import java.util.AbstractCollection;
import java.util.AbstractList;
import java.util.ArrayList;
import java.util.BitSet;
import java.util.Calendar;
import java.util.Date;


if i declare import sentece like case 1.
all classes in java.util. are imported when compiling ?
so can it be little longer than case 2 ?

i wonder, if i declare import like case1, is it bad things for performance ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 12 2010
Added on Apr 14 2010
3 comments
137 views