Companion Website Characteristics of Java Java Is Simple Java Is Object

Companion website characteristics of java java is

This preview shows page 39 - 50 out of 78 pages.

Companion Website
Background image
Characteristics of JavaJava Is Simple Java Is Object-Oriented Java Is Distributed Java Is Interpreted Java Is Robust Java Is Secure Java Is Architecture-Neutral Java Is Portable Java's Performance Java Is Multithreaded Java Is Dynamic 40Multithread programming is smoothly integrated in Java, whereas in other languages you have to call procedures specific to the operating system to enable multithreading.Companion Website
Background image
Characteristics of JavaJava Is Simple Java Is Object-Oriented Java Is Distributed Java Is Interpreted Java Is Robust Java Is Secure Java Is Architecture-Neutral Java Is Portable Java's Performance Java Is Multithreaded Java Is Dynamic 41Java was designed to adapt to an evolving environment. New code can be loaded on the fly without recompilation. There is no need for developers to create, and for users to install, major new software versions. New features can be incorporated transparently as needed.Companion Website
Background image
JDK VersionsJDK 1.02 (1995)JDK 1.1 (1996)JDK 1.2 (1998)JDK 1.3 (2000)JDK 1.4 (2002)JDK 1.5 (2004) a. k. a. JDK 5 or Java 5JDK 1.6 (2006) a. k. a. JDK 6 or Java 6JDK 1.7 (2011) a. k. a. JDK 7 or Java 7JDK 1.8 (2014) a. k. a. JDK 8 or Java 842
Background image
JDK EditionsJava Standard Edition (J2SE)J2SE can be used to develop client-side standalone applications or applets.Java Enterprise Edition (J2EE)J2EE can be used to develop server-side applications such as Java servlets, Java ServerPages, and Java ServerFaces. Java Micro Edition (J2ME). J2ME can be used to develop applications for mobile devices such as cell phones. This book uses J2SE to introduce Java programmingAll Java software available on Oracle .43
Background image
Popular Java IDEsNetBeans Eclipse DrJava 44
Background image
A Simple Java Program// This program prints Welcome to Java! public class Welcome {public static void main(String[] args) { System.out.println("Welcome to Java!");}}45RunRunListing 1.1Note: Clicking the blue button runs the code from Windows. If you cannot run the buttons, see liveexample.pearsoncmg.com/slide/javaslidenote.doc.WelcomeNote: Clicking the green button displays the source code with interactive animation. You can also run the code in a browser. Internet connection is needed for this button.
Background image
Creating and Editing Using NotePadTo use NotePad, type notepad Welcome.java from the DOS prompt.46
Background image
Creating and Editing Using WordPadTo use WordPad, type write Welcome.java from the DOS prompt.47
Background image
Creating, Compiling, and Running Programs48
Background image
Compiling & Interpreting49On command lineCompiling: javac myProgram.javaInterpreting: java myProgramJava source fileJava bytecode fileThe compiler translates a source code program into a platform-independent, intermediate language called Java bytecodes.The interpreter parses and runs each Java bytecode (machine code) instruction on the computer.
Background image
Image of page 50

You've reached the end of your free preview.

Want to read all 78 pages?

  • Fall '19

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes