Re: who can tell me why



Oliver Wong wrote:
I was thinking of the former. Just as an example off the top of my head, maybe you're writing a class which does SQL stuff, and puts things into collections. If you write:

import java.sql.*;
import java.util.*;

You'll get a collision with the classname "Date", because there exists a java.sql.Date and a java.util.Date. If you instead wrote:

import java.sql.Connection;
import java.sql.Date;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;

Only if you do not specify the package name in front of the class name when declaring the variable, would there be a problem. But I see your point though, basically there is pro and cons to the issue.

/tom
.



Relevant Pages

  • Re: Effects of Magic
    ... I've got dialogue in my head and I'm writing it down already. ... because I much prefer the scenes where I've ... better class of first draft as long as I know the setting, ...
    (rec.arts.sf.composition)
  • Re: Clue bats
    ... I could tell myself more complicated stories. ... I can't keep them in my head, so I have to write them down. ... and I enjoy the process of writing very much ... I've been absolutely utterly thoroughly stuck 20K after a missed ...
    (rec.arts.sf.composition)
  • Re: How to understand huge code
    ... product) I feel very difficult understanding the complete code flow. ... writing it in a semi-programming language helps reduce clutter. ... For things like SQL, I ask myself what the SQL is retrieving ...
    (comp.programming)
  • Re: Is there a way to keep the StreamWriter open?
    ... SQL that I can writing to a text file with some decient programming ... hardware and it would be able to keep up but not be faster. ... It is, in some ways, but the process writing the IIS logs is optimized ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Intro post (belated): Nick Argall
    ... no productivity. ... To be a writer, one must *sit down and write*. ... It makes me want to beat my head against a wall. ... I know up front that I'm probably not going to get any writing done, and I know that I will as soon as I get home, so I'm not going to beat myself up over it. ...
    (rec.arts.sf.composition)