1History of JavaJava Class LibrariesFORTRAN, COBOL, Pascal and AdaBASIC, Visual Basic, Visual C++, C# and .NETTypical Java Development EnvironmentFig. 1.1 Typical Java development environment.Creating a Program with JCreatorSlide 9Slide 10Slide 11Slide 12Slide 13Slide 14Slide 15View Flash Presentations1•Introduction to Java2 History of Java•Java–Originally for _______________ consumer-electronic devices–Then used for creating Web pages with _______________–Now also used to:•Develop large-scale enterprise applications•Enhance WWW ___________ functionality•Provide applications for consumer devices (cell phones, etc.)3 Java Class Libraries•Classes–Include methods that ________________•Return information after task completion–Used to build Java programs•Java provides class ________________–Known as Java APIs (A_______________ P________________ I ________________4FORTRAN, COBOL, Pascal and Ada•___________________–FORmula TRANslator•COBOL–COmmon ______________ Oriented Language•Pascal–______________ programming•Ada–Multitasking5BASIC, Visual Basic, Visual C++, C# and .NET•BASIC–Beginner’s All-Purpose ___________ ________ Code•.NET–.NET platform •Visual Basic .NET–Based on BASIC•_______________ C++–Based on C++•C#–Based on C++ and ___________________6Typical Java Development Environment•Java programs normally undergo five phases–Edit•Programmer __________ program (and stores program on disk)–Compile•Compiler creates bytecodes from program–__________________•Class loader stores bytecodes in memory–Verify•_______________ Verifier confirms bytecodes do not violate security restrictions–Execute•JVM translates bytecodes into machine language7Fig. 1.1 Typical Java development environment.8Creating a Program with JCreator•Click on the JCreator ____________•IDE windowappears9Creating a Program with JCreator•Click on File, New, then P______________•Project Wizard appears–Choose Java ________________ template10Creating a Program with JCreator•Give the project a _________________•Then click Next11Creating a Program with JCreator•You will want the JDK version 1.5At this point you can click on FinishAt this point you can click on Finish12Creating a Program with JCreator•Now we create our class (the program) with File, New, and Class13Creating a Program with JCreator•The wizard creates a __________________.•Now complete the program with the required commands.14Creating a Program with JCreator•Run the compiler with Build, and CompileFile___________________ shows in bottom pane. This is where compiler error messages will be displayed.15Creating a Program with JCreator•To run the compiled program click on Build, and _________________•Program runs in separate window16View Flash Presentations•Creating a workspace, project, and application•Writing, compiling, running an
View Full Document