DOC PREVIEW
LETU COSC 2103 - Introduction to Java

This preview shows page 1-2-24-25 out of 25 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 25 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 25 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 25 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 25 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 25 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Chapter 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 15Programming with "Ready to Program"Slide 17Java ProgramsCreating a Java ApplicationSlide 20Slide 21Slide 22Slide 23Slide 24Why Different IDEs?1Chapter 1Introduction to Java2 History of Java•Java•Originally for _________________________ devices•Then used for creating Web pages with __________________________•Now also used to:•Develop large-scale ___________ applications•Enhance WWW server functionality•Provide applications for consumer devices (cell phones, etc.)3 Java Class Libraries•Classes•Include methods that ___________________•Return _______________ after task completion•Used to build Java programs•Java provides class libraries•Known as Java APIs _____________________ _________________ _________________4FORTRAN, COBOL, Pascal and Ada•FORTRAN•FORmula __________________•COBOL•COmmon _______________ Oriented Language•Pascal•Structured programming•____________•Multitasking5BASIC, Visual Basic, Visual C++, C# and .NET•BASIC•Beginner’s _____________ Symbolic Instruction _______________•.NET•.NET platform •______________ Basic .NET•Based on BASIC•Visual C++•Based on C++•C#•Based on _____________________6Typical Java Development Environment•Java programs normally undergo five phases•________________•Programmer writes program (and stores program on disk)•Compile•Compiler creates _______________ from program•Load•Class loader stores bytecodes in memory•Verify•Bytecode Verifier confirms bytecodes do not violate _______________________________•Execute•JVM translates bytecodes into ____________________7Fig. 1.1 Typical Java development environment.8Creating a Program with JCreator•Click on the JCreator Icon•IDE windowappears9Creating a Program with JCreator•Click on File, New, then Project•Project Wizard appears•Choose Java Application template10Creating a Program with JCreator•Give the project a ____________•Then click Next11Creating a Program with JCreator•You will want the JDK version 1.5•This tab is where you can specify hsa libraryAt 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 template.•Now complete the program with the required commands.14Creating a Program with JCreator•Run the compiler with Build, and CompileFile15Creating a Program with JCreator•To run the compiled program click on Build, and ExecuteFile•Program runs in separate window16Programming with "Ready to Program"•Find the "Ready" option on the program menu or click on the"Ready" icon17Programming with "Ready to Program"•An empty editor window appears18Java Programs•A Java program consists of one or more classes19Creating a Java Application•The "Ready" environment will give you skeleton or boilerplate format for programs•Click on File, New, and HSA Console option•A dialog box asksfor the name of the class20Creating a Java Application•The appropriate boilerplate text appears in the edit window – note the color coding21Creating a Java Application•Fill in the necessary commands•Save theprogram22Creating a Java Application•To run a Java program•Press the Run button or•Press Ctrl+R or•Press F1•The consoleprogram showsa consolewindow23Creating a Java Application•Make sure to save the program before quitting•The "Ready" environment will remind you•To exit the "Ready" environment•Click the X close or•Choose File, Exit or•Use Ctrl-Q24Creating a Java Application•Errors in the program•Syntax errors are found for you by the compiler25Why Different IDEs?•Which one you use depends on what you are doing•In class the Ready to Program IDE is __________________, “quick and dirty”•But … it does not support JDK 5.0•____________________•supports JDK 5.0•Eclipse•a bit more complicated, but does a bit more•found to be a bit balky with some elements of JDK


View Full Document

LETU COSC 2103 - Introduction to Java

Documents in this Course
Arrays

Arrays

16 pages

Templates

Templates

17 pages

Methods

Methods

22 pages

Methods

Methods

22 pages

Arrays

Arrays

11 pages

Load more
Download Introduction to Java
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Introduction to Java and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Introduction to Java 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?