Advise request

Hello all!

This is a brief question.. i Want to know which is better in terms of resource usage and performance:

using this:

import java.awt.event.ComponentAdapter;

import java.awt.event.ComponentEvent;

import java.awt.event.WindowAdapter;

import java.awt.event.MouseAdapter;

import java.awt.event.WindowEvent;

import java.awt.event.MouseEvent;

import java.awt.BorderLayout;

import java.awt.Rectangle;

import java.awt.Container;

import java.awt.Dimension;

import java.awt.Cursor;

import java.awt.Color;

import java.awt.Font;

for example or just:

import java.awt.*;

Well at first I tought it would be better to import only the classes I will be using but then I tought that maybe it's easier for the compiler to parse only one import sentence than a lot of them. Which one do you recomend me?

Thanks in advance

Sergio

[1406 byte] By [sergio.bobilliera] at [2007-11-27 4:50:08]
# 1
It makes no difference at runtime and it makes little to no difference at compile time.It is more a matter of personal choice and conventions. Many believe that the first style is better as a convention.
cotton.ma at 2007-7-12 10:03:23 > top of Java-index,Java Essentials,Java Programming...
# 2

import java.awt.event.ComponentAdapter;

import java.awt.event.ComponentEvent;

import java.awt.event.WindowAdapter;

import java.awt.event.MouseAdapter;

import java.awt.event.WindowEvent;

import java.awt.event.MouseEvent;

import java.awt.BorderLayout;

import java.awt.Rectangle;

import java.awt.Container;

import java.awt.Dimension;

import java.awt.Cursor;

import java.awt.Color;

import java.awt.Font;

Nice wedge! I usually sort them, to make it easier to scan and for consistency across files.

Hippolytea at 2007-7-12 10:03:23 > top of Java-index,Java Essentials,Java Programming...