Win a copy of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests this week in the OCP forum!

Steve Yee

Greenhorn
+ Follow
since Feb 03, 2021
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
2
Given in last 30 days
2
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Steve Yee

Tim Holloway wrote:The primary API documentation is JavaDocs. JavaDocs can be automatically produced by running the javadoc utility program against Java source code with specially-formatted comments. IDEs such as Eclipse can even run the javadoc on your own project source code.

The standard output from javadoc is a series of HTML pages suitable for hosting on a webserver. When Oracle releases a new version of Java, they generate JavaDocs and publish them on their own website.

For example: https://docs.oracle.com/javase/7/docs/api/index.html?java/sql/Date.html

The concept is actually older that Java. For example, When I developed for the Commodore Amiga back in the min-1980s, they had a similar system for C code called AutoDoc and their paper manuals were generated from there and then sent to their publisher (Addision-Wesley). I created a system of my own using scripts for C++ in the early 1990s. It output MS-Word Rich Text Format.

Non-Java systems these days often document themselves via a program called Doxygen. It lifts some of its features from JavaDoc.

And, incidentally, while most of the published JavaDocs you see are pretty sparing, you can, at your option add all sorts of secondary information, including HTML tables, graphics, and long rambling treatises. To be re-generated at will if you change the sources.



That's pretty detailed! Thank you.
2 weeks ago

Campbell Ritchie wrote:

Steve Yee wrote:. . . Thank you . . .

That's a pleasure Did you get your installation to work?



Yep it works, ready for typing some code haha
Though as a beginner I really don't know what API Documentation is for and how to download it(as it is DOCUMENTATION I don't think I have to download it but the book recommends me to do so), I guess I just need to go through the book for now.

2 weeks ago

Campbell Ritchie wrote:Welcome to the Ranch

The book HFJ is now quite old, but they are planning a new edition. Sun no longer exist, so you will have to look elsewhere for your downloads. I haven't downloaded an API file for a long time, but this is where you will find the most recent API. Go here to download the JDK: go for the “ready for use JDK 15” link. Make sure you update your system/user PATH with the path to the new Java® installation at its beginning.
If you use Windows, tell us what you did and I might have to update our FAQ.



Thank you very much. I know HFJ is kind of old, in that case, any suggestion on equally reliable and 101-reader-friendly books?
3 weeks ago
Hello,
     As a total beginner just started to learn Java. I use Head First Java as my 101 textbook.
     In its intro part it tells me to download Java 2 Standard Edition SDK and API Documentation and gives me the links from sun.com, but now it's already been directed to oracle page and I cannot find the exactly corresponding pages.
     I know Java 2 Standard Edition is now Java SE, but is the SDK included in Java SE package? And which version should I pick? the newest version(SE15)?
     And I even don't know where I can get the API Doucmentation... Just because I really have no idea about what it is.
     Those questions sound stupid but anyone tell me about it? Thank you.
3 weeks ago