why URLConnection is declared abstract

From: Madhur Ahuja (ef_at_df.com)
Date: 10/30/04


Date: Sat, 30 Oct 2004 23:20:09 +0530

Hello

I wonder why this class has been declared abstract
in java API, since one uses this class as:

* URLConnection con= url.openConnection();

* All the methods are concretely defined.

* There is no concrete subclass of this class.

I tried
URLConnection a=new URLConnection(URL b);

but the compiler fired a error that URLConnection is
abstract, I simply changed the statement to:

URLConnection a=b.openConnection();

Did I miss anything or did anything wrong?

Does java wants us to extend a new URLConnection class
if we want to use it in our application?

--
Madhur Ahuja [madhur<underscore>ahuja<at>yahoo<dot>com]
Homepage
http://madhur.netfirms.com