Java's built-in libraries implementation

后端 未结 4 924
[愿得一人]
[愿得一人] 2021-01-23 05:47

Does anyone happen to know where, if at all possible, I can take a look at the code of the java\'s built-in libraries?

I\'ve tried Ctrl + Shift + B (which

相关标签:
4条回答
  • 2021-01-23 06:23

    You can also use jad to decompile any .class file

    0 讨论(0)
  • 2021-01-23 06:24

    Sure, JDK is distributed with sources, you can conveniently open them in your IDE. Look for "src.jar".

    It probably already is set up. In Eclipse, just try to Ctrl-Shift-T something like "java.lang.String".

    A web search will also turn up nicely linked and formatted pages.

    0 讨论(0)
  • 2021-01-23 06:47

    built-in libraries source code is available with jdk. For example on a windows box the jdk folder would contain src.zip which contain the sources for the built-in libraries

    Hope this helps.

    0 讨论(0)
  • 2021-01-23 06:50

    Google "java decompiler" and download it. You can see the source code for any class file in the libraries.

    0 讨论(0)
提交回复
热议问题