浏览 Javadoc

发布于 2024-11-14 01:12:26 字数 549 浏览 4 评论 0原文

我是 Java 新手,首先我读了几本有关 Java 语言的书籍。

我有几个关于 java 文档的问题。如何“导航”它们?是否可以仅使用 Javadoc 来学习新概念?

这是一个例子 - 我想使用 nio 构建一个基于“事件”的无锁聊天服务器。为此,我开始浏览 J2SE 6 Java API 文档: http://download.oracle .com/javase/6/docs/api/

我看到有几个处理 nio 的包 - java.nio、java.nio.channels、java.nio.channels.spi、java.nio.charset、 java.nio.charset.spi

我查看了类、接口等。但我实际上不知道如何开始使用“nio”概念。使用什么文档可以有效地学习这些概念?

如果我的问题有点冗长或过于概念化,我深表歉意。我正在尝试找出围绕 Java 生态系统的方法,以找到有效自学概念的最佳方法。

谢谢!

I am new to Java and as a first I read through a couple of books that deal with the Java language.

I had a couple of questions about the java docs. How does one 'navigate' them? Is it possible to learn new concepts using solely Javadocs?

Here's an example - I want to use nio to build an 'event' based lock-free chat server. For that I started looking through the J2SE 6 Java API docs: http://download.oracle.com/javase/6/docs/api/

I saw there were several packages that deal with nio - java.nio, java.nio.channels, java.nio.channels.spi, java.nio.charset, java.nio.charset.spi

I looked over the classes, interfaces etc. But I didn't actually know how to start using the 'nio' concepts. What documentation does one use to learn such concepts effectively?

Apologies if my question is a bit long winded or too conceptual. I am trying to figure out my way around the Java eco-system to find the best way to self-learn concepts effectively.

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

单挑你×的.吻 2024-11-21 01:12:26

API 文档用于查找类和方法。它对于学习概念很少有用。为此使用教程(或书籍),例如 Oracle

An API documentation is for lookup of classes and methods. It's rarely useful for learning concepts. Use tutorials (or books) for that, e.g. the one from Oracle.

自由范儿 2024-11-21 01:12:26

这可能会帮助您入门,

https://www.ibm.com/developerworks/ java/tutorials/j-nio/

这是 NIO 的启动,并包含示例应用程序等资源的链接

Happy Coding!

This might get you started,

https://www.ibm.com/developerworks/java/tutorials/j-nio/

It's a kick start for NIO and has links to resources such as example applications

Happy Coding!

萧瑟寒风 2024-11-21 01:12:26

Javadoc 基本上是用来解释所编写的 API 的。如果你想学java我不会推荐他们。但如果你想学习某人的 API,那就对了。 Javadovs 还有助于理解类层次结构和依赖关系。

Javadocs basically are used/written to explain the API one has written. I will not suggest them if you want to learn java. But if you want to learn someone's API, then that is the thing. Javadovs also help to understand the class hierarchies and dependancies.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文