📄 00000000.htm
字号:
<BR>A little further out in left field, it isn't even necessary to know Java to write Java programs. <BR>Intermetrics is beta testing an ADA-95 to Java byte code compiler. Other such cross-compilers <BR>are probably possible including ANSI Fortran-77. However the one most people probably want, a <BR>C/C++ to Java byte code compiler, is probably not possible due to Java's lack of pointers. <BR> <BR>1.5: Where does Javascript fit in? <BR> <BR>To quote from p. 31 of the first edition of my book, The Java Developer's Resource, <BR> <BR> Java and JavaScript are about as closely related as the Trump Taj Mahal in Atlantic <BR> City is to the Taj Mahal in India. In other words Java and JavaScript both have the <BR> word Java in their names. JavaScript is a programming language from Netscape which <BR> is incorporated in their browsers. It is superficially similar to Java in the same way C <BR> is similar to Java but differs in all important respects. <BR> <BR>1.6: What's the difference between an application and an applet? <BR> <BR>This question can be answered on many levels. Technically an application is a Java class that has a <BR>main() method. An applet is a Java class which extends java.applet.Applet. A class which <BR>extends java.applet.Applet and also has a main() method is both an application and an <BR>applet. <BR> <BR>More generally and less technically an application is a stand-alone program, normally launched <BR>from the command line, and which has more or less unrestricted access to the host system. An <BR>applet is a program which is run in the context of an applet viewer or web browser, and which has <BR>strictly limited access to the host system. For instance an applet can normally not read or write <BR>files on the host system whereas an application normally can. <BR> <BR>The actions of both applets and applications, however, can be controlled by SecurityManager <BR>objects. If you can change the SecurityManager that's used you can change what an applet or an <BR>application is and is not allowed to do. Thus these are not hard and fast differences, though this is <BR>normally how they separate out in practice. <BR> <BR>2 What other Java Resources are available? <BR> <BR>2.1Web Sites <BR> <BR>The key site for Java information is <A HREF="http://www.javasoft.com/.">http://www.javasoft.com/.</A> This is Sun's official site for Java, <BR>and contains the latest published version of all official Java information. The most important page <BR>on this site is the Documentation page at <A HREF="http://www.javasoft.com/doc/.">http://www.javasoft.com/doc/.</A> Most of the other pages <BR>are linked off of this page or its children. <BR> <BR>For many more web sites see the Cafe Au Lait links page at <BR><A HREF="http://sunsite.unc.edu/javafaq/links.html.">http://sunsite.unc.edu/javafaq/links.html.</A> <BR> <BR>2.2: Mailing Lists <BR> <BR>There are over sixty different Java related mailing lists. A more-or-less complete list is at the <BR>Cafe Au Lait mailing list page at <A HREF="http://sunsite.unc.edu/javafaq/mailinglists.html.">http://sunsite.unc.edu/javafaq/mailinglists.html.</A> <BR> <BR>2.3: Newsgroups <BR> <BR>alt.www.hotjava <BR> A newsgroup for the discussion of the HotJava browser. <BR> <BR>comp.lang.java.announce <BR> A newsgroup for announcements that may be of interest to Java developers. See <BR> <A HREF="http://www.cs.latrobe.edu.au/~leachbj/clj.announce/guidelines.html">http://www.cs.latrobe.edu.au/~leachbj/clj.announce/guidelines.html</A> for the ridiculously <BR> complicated submission guidelines and submission address. <BR> <BR>comp.lang.java.programmer <BR> A newsgroup for the discussion of the Java language. <BR> <BR>comp.lang.java.machine <BR> Technical issues about Java not related directly to programming, including virtual machines, <BR> byte code, classfile format, performance and optimization, possible extensions, porting, <BR> native methods and interfacing Java with other languages. <BR> <BR>comp.lang.java.security <BR> Discussion concerning any of Java's security features such as byte code verification, <BR> SecurityManagers, class loaders, public-key encryption and authentication of classes, holes <BR> in the security model, and similar topics. <BR> <BR>comp.lang.java.help <BR> This group is for end-users of Java systems, not programmers. It deals with installation <BR> problems, CLASSPATH problems, the availability of ports to specific platforms, and the <BR> like. Subject lines should include the platform that the problem occurs on, and the browser <BR> version, for example MacOS 7.5 Netscape 3.0. <BR> <BR>comp.lang.java.beans <BR> The JavaBeans component software API <BR>comp.lang.java.databases <BR> Java and databases, including middleware like java.sql, JDBC, ODBC, and Java based <BR> databases like jDB. <BR>comp.lang.java.gui <BR> The AWT and other GUI enrvironments: windows, dialogs, menus, components, buttons, <BR> radio buttons, printing, cut and paste, etc. <BR>comp.lang.java.softwaretools <BR> Integrated Development Environments (IDEs), web browsers, compilers, applet viewers, <BR> Rapid Application Development (RAD) tools, class browsers, visual interface builders, and <BR> other tools. <BR> <BR>2.5: Books <BR> <BR>As of March, 1997 I recommend four books in particular for those learning the language. The first <BR>is my own book, The Java Developer's Resource, ISBN: 0-13-570789-7, $26.95 from Prentice <BR>Hall. This is an introduction to Java for programmers, regardless of previous experience with C or <BR>OOP. It should be available in most bookstores that stock computer books as well as from <BR>amazon.com, <A HREF="http://www.amazon.com/exec/obidos/ISBN=0135707897/">http://www.amazon.com/exec/obidos/ISBN=0135707897/</A> <BR> <BR>The second book I recommend is Java in a Nutshell: A Desktop Quick Reference for Java <BR>Programmers by David Flanagan from O'Reilly & Associates, Inc., ISBN: 1-56592-183-6, <BR>$19.95. This is an excellent introduction to Java for C and C++ programmers and an excellent <BR>reference for everyone. <BR> <BR>For people with no prior experience in programming I recommend Kris Jamsa's Java Now!, ISBN: <BR>1-884133-30-4, $16.95, Jamsa Press. <BR> <BR>Finally The Java Handbook by Patrick Naughton, $27.95, Osborne/Mcgraw-Hill, is a moderately <BR>comprehensive introduction to Java. <BR> <BR>None of these books cover Java 1.1. In fact as of this writing, no book truly covers Java 1.1 though <BR>several claim to. <BR> <BR>For details about these and many more books see the Cafe Au Lait books page at <BR><A HREF="http://sunsite.unc.edu/javafaq/books.html">http://sunsite.unc.edu/javafaq/books.html</A> <BR> <BR>3: Java for C++ programmers <BR> <BR>In the large Java looks like Smalltalk. In the small it looks like C. The syntax of Java is <BR>deliberately similar to C. If you know C you already know large chunks of Java. Here, in brief, is <BR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -