DOC PREVIEW
UB CSE 115 - Java Syntax, Java Conventions, CSE 115 Conventions (Part 1)

This preview shows page 1-2-3 out of 8 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 8 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 8 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 8 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 8 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Java Syntax, Java Conventions, CSE 115 Conventions (Part 1)I - Java FilesI – Java FilesII – Java SyntaxIII – Names of Java FilesIV – Identifying the classV – Class vs. ObjectVI – Where does the program start?Java Syntax, Java Conventions, CSE 115 Conventions (Part 1)CSE 115 Spring 2006January 25 & 27, 2006I - Java FilesAll files that contain Java source code have a .java extensionCode that has been compiled (using the compiler javac) will be turned into byte code and stored in files with a .class extensionRun the files with the java command to execute the program.I – Java FilesThe process of creating files is often called the edit-compile-run cycle as the steps are:Create/edit your source codeCompile the codeRun the program to see if it worksIf it doesn’t work correctly, go back to step 1II – Java SyntaxJava is case sensitive (as is UNIX)The words:excellentExcellentare seen as different by JavaJava is also an extremely consistent speller.III – Names of Java FilesMatch the names of the classes defined in those filesEach file contains one (and only one) class definitionAll Java code must exist inside of a classIV – Identifying the classClass definitions begin at the word public and end at a } that matches a { that follows the name of the class.public class SomeName {Between the { } is the Java code that outlines what the functionality of the class is.}V – Class vs. ObjectClass – formal specification (definition)Object – actual instanceWe need to represent properties and capabilities formally, what programming constructs do we use to do this?VI – Where does the program start?Q: How do you get your program to run in Eclipse?Q: What are the two types of Java programs and what are their differences?Program starts with the first line of the Applet’s


View Full Document

UB CSE 115 - Java Syntax, Java Conventions, CSE 115 Conventions (Part 1)

Download Java Syntax, Java Conventions, CSE 115 Conventions (Part 1)
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 Java Syntax, Java Conventions, CSE 115 Conventions (Part 1) 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 Java Syntax, Java Conventions, CSE 115 Conventions (Part 1) 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?