and symbols that we can use to write a programemploys a set of rules (syntax) that dictate how the words and symbols can be put together to form valid program statementsDefines the meaning (semantics) of program statements•Java was created by Sun Microsystems and introduced in 1995 (acquired by Oracle, 2010)•Java continues to evolve and grow in importance to the software industryCOMP 1210 – Fundamentals of Computing I Slide 1 - 10Java Program Structure•In the Java programming language: A programis made up of one or more classesA classcontains data and/or methodsA methodcontains local data and program statements that form analgorithm•These terms will be explored in detail throughout the course•A Java application has a class containing a method called main
Subscribe to view the full document.
6COMP 1210 – Fundamentals of Computing I Slide 1 - 11First Program with jGRASP1.Start up jGRASP2.Open a new file3.Enter the program (incrementally)- The program should print “War Eagle”4.Save program5.Compile program6.Run program (check for correct output)7.Set a breakpoint and Debug (step through each statement8.Generate CSD, Line No., and DocumentationCOMP 1210 – Fundamentals of Computing I Slide 1 - 12jGRASPFirstProgram.java
7COMP 1210 – Fundamentals of Computing I Slide 1 - 13jGRASPFirstProgramWithComments.javaCOMP 1210 – Fundamentals of Computing I Slide 1 - 14Software ConceptsAlgorithms and DataDissecting a Java ProgramProgram Development, Translation, and ExecutionSyntax, Semantics, and ErrorsOverview of Programming LanguagesObject-Oriented ProgrammingApplets vs. Applications