A question of reading api document

D

Davide

mike said:
regards:

When I read the api of some opensource

Classes
XXX.YYY

Hi Mike.
Perhaps I may be wrong...

could be XXX a class in YYY package?

For example, you could have ZZZ.XXX.YYY, this may be java.util.Vector:
java is the external package, util is the inner package ad Vector a
class in java.util package.

This could be true if YYY start whit capital letter and XXX doesn't.
If you post exact names it could simpler to identify XXX and YYY roles ;)

Sorry for my bad english :)

Bye,
Davide
 
A

Ann

Davide said:
Hi Mike.
Perhaps I may be wrong...

could be XXX a class in YYY package?

For example, you could have ZZZ.XXX.YYY, this may be java.util.Vector:
java is the external package, util is the inner package ad Vector a
class in java.util package.

I never heard of "external package" and "inner package", what
are they? I searched the SUN Java Tutorial for them and nothing
is found.
 
K

KiLVaiDeN

Ann said:
I never heard of "external package" and "inner package", what
are they? I searched the SUN Java Tutorial for them and nothing
is found.

There is no real hierarchy in the packages, but since they are handled like
folders you could say "external package" is the higher folder, and "inner
package" would be the subfolders.
They could also be handled differently, like this

instead of
java
util
lang

having something like
java.util
java.lang

K
 
D

Davide

KiLVaiDeN said:
There is no real hierarchy in the packages, but since they are handled like
folders you could say "external package" is the higher folder, and "inner
package" would be the subfolders.
They could also be handled differently, like this

instead of
java
util
lang

having something like
java.util
java.lang

Right, you expressed what I had in my mind :)

Anyway, if Mike posts actual names, a more precise response could be given.

Bye,
Davide
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top