Java Reference
In-Depth Information
7. Generally, machine code depends on the CPU type. However, the instruction set
of the Java virtual machine (JVM) can be executed on many CPUs.
8. Because machine instructions are encoded as numbers, it is difficult to write
programs in machine code.
9. High-level languages allow you to describe tasks at a higher conceptual level
than machine code.
10. A compiler translates programs written in a high-level language into machine
code.
11. Java was originally designed for programming consumer devices, but it was first
successfully used to write Internet applets.
27
28
12. Java was designed to be safe and portable, benefiting both Internet users and
students.
13. Java has a very large library. Focus on learning those parts of the library that
you need for your programming projects.
14. Set aside some time to become familiar with the computer system and the Java
compiler that you will use for your class work.
15. Develop a strategy for keeping backup copies of your work before disaster
strikes.
16. Java is case sensitive. You must be careful about distinguishing between
upper-and lowercase letters.
17. Lay out your programs so that they are easy to read.
18. Classes are the fundamental building blocks of Java programs.
19. Every Java application contains a class with a main method. When the
application starts, the instructions in the main method are executed.
20. Each class contains definitions of methods. Each method contains a sequence of
instructions.
21. Use comments to help human readers understand your program.
Search WWH ::




Custom Search