1. Developed by a team led by James Gosling at Sun Microsystems in 1991. Originally called Oak, it became Java in 1995 when it was redesigned for developing Internet applications.
2. See the section "Java Is Object Oriented."
3. Java can run on any platform with a Java Virtual Machine. The minimum requirement is the Java Runtime Environment, free from the www.javasoft.com.
4. The input is the Java source code and the output is the Java bytecode (if compiled successfully).
5. JBuilder by Borland, Forte by Sun, Café by WebGain, Visual Age for Java by IBM are the tools for developing Java programs, not dialects of Java. These tools make developing Java programs easier and more productive.
6. HTML is a markup language for displaying static Web pages. Java is a full-fledged programming language that can be used to develop dynamic Web pages. The Java programs that run from a Web browser are called applets. Java applets must be embedded in HTML files using the <applet> tag.
7. Keywords have specific meaning to the compiler and cannot be used for other purposes in the program such as variables or method names. Examples of keywords are class, static, and void.
8. Java source code is case sensitive. Java keywords are always in lowercase.
9. The source file extension is .java and the bytecode file extension is .class.
10. Comments are used to document what a program is for and how a program is constructed. Comments help the programmers or users to communicate and understand the program. Comments are not programming statements and are ignored by the compiler. In Java, comments are preceded by two forward slashes (//) in a line or enclosed between /* and */ in multiple lines. When the compiler sees //, it ignores all text after // in the same line. When it sees /*, it scans for the next */ and ignores any text between /* and */.
11.
System.out.println(...);
12. Main should be main. Welcome to Java! should be enclosed inside double quotation marks. The last ) should be }.
13. Use the Project wizard.
14. The most convenient way to compile a program is to choose the program in the project pane, right click the mouse button to display a context menu, choose Make from the context menu.
15. The most convenient way to compile a program is to choose the program in the project pane, right click the mouse button to display a context menu, choose Run from the context menu
16. The .class file is stored in c:\smith\homework\csci1301.
17. Test.java is stored in in c:\smith\exercise1.