Re: Here's a dumbass question

From: Liz (Liz_at_nospam.com)
Date: 06/19/04


Date: Sat, 19 Jun 2004 04:41:12 GMT


"James D Carroll" <jamesdcarroll@hotmail.com> wrote in message
news:SqOcncwfg7B2FE7d38DK-g@speakeasy.net...
> I don't know why I never thought of this, but we know that there is the
> "package" level of protection for methods. Let's say that there is a
package
> that I'm interested in. Could I create a class that of the same package
to
> gain access to them? Could I create a class as
>
> package java.lang
>
> public class MyClass{...}
>
>
> and get access to all the methods all the methods that were supposed to be
> for the original class in that package only?
>
>
> Thanks,
>
I think so, just put the class file in the same directory. But you
may find that users will be reluctant to put your class there on their
systems.



Relevant Pages

  • Re: Heres a dumbass question
    ... Could I create a class that of the same package to ... > gain access to them? ... It's not really a dombass question, but it is a dumbass subject line. ... will tend to get much more helpful responses than otherwise. ...
    (comp.lang.java.programmer)
  • Re: Heres a dumbass question
    ... James D Carroll wrote: ... Could I create a class that of the same package to ... > gain access to them? ... classloader that's not related to the boot classloader, ...
    (comp.lang.java.programmer)
  • Re: Referring to packages
    ... > how can i gain access to a class within package2 from within a source ... > packages/directories that are BELOW the package doing the referring. ... > In the context im thinking of i have a GUI package and a number of ... > DATA packages - i want the GUI classes to be able to access DATA ...
    (comp.lang.java)
  • Heres a dumbass question
    ... "package" level of protection for methods. ... gain access to them? ... Checked by AVG anti-virus system. ...
    (comp.lang.java.programmer)
  • Re: my first bean (tomcat)
    ... I believe I have a problem because the package name of my Bean ... I have found this by including into my webapp a Bean I ... Put the bean's class file in the webapp's WEB-INF/classes directory, or jar it up and put the jar in the webapp's WEB-INF/lib directory. ...
    (comp.lang.java.programmer)