Why getResourceAsStream method is in Class class?

Posted by anupsth on Stack Overflow See other posts from Stack Overflow or by anupsth
Published on 2010-06-17T11:31:31Z Indexed on 2010/06/17 11:33 UTC
Read the original article Hit count: 165

Filed under:
|

Why public InputStream getResourceAsStream(String name) is in Class class? It just give inputstream of file which is in jar file and there is no relation with Class class. so it can be static method and it can be in any class.

© Stack Overflow or respective owner

Related posts about java

Related posts about java-me