Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

java classes

  Asked By: Trupti    Date: Dec 03    Category: Java    Views: 549
  

I am learning Java.
Could anyone pls let me know the following:

I find that the appropriate package should be selected for a
particular class to be used in a program and also choose the
appropriate class as a superclass.

I want to know how is it possible to know that a particular belongs
to the package and also how to know that any superclass can be used
in my program.

Share: 

 

3 Answers Found

 
Answer #1    Answered By: James Williams     Answered On: Dec 03

if u r using any popular ide for ur development that will solve ur problem

ex. if u r using any class  without importing its package  it will raise u an
alert with the package name to import. is it ok?

(best ide for java  development is Intellij from jetbrains, using lower ram)

 
Answer #2    Answered By: Albert Ellis     Answered On: Dec 03

take a look at Reflection, maybe you can resolve your problem with that:
java.sun.com/.../index.html

 
Answer #3    Answered By: Dannon Jones     Answered On: Dec 03

before going to use a perticular class  please see the java  doc and in that u
will easily find  that...

in that u will find the heirarchy also..

so please the java documentation for the reference

 
Didn't find what you were looking for? Find more on java classes Or get search suggestion and latest updates.




Tagged: