01:198:111 Lecture Notes - Lecture 3: Subroutine, Semicolon

42 views1 pages
cyansea-lion159 and 56 others unlocked
01:198:111 Full Course Notes
47
01:198:111 Full Course Notes
Verified Note
47 documents

Document Summary

// the classic hello world program, in java public class helloworld{ public static void main(string [ ] args){ Are ignored by the compiler, used for programmers to better understand and keep track of source code. Comments source code until the end of the line. Comments source code from /* to */ across multiple lines. The name of the class must be an identifier. An identifier must abide by the following rules: Rest of the characters must be numbers or letters. Class names start with an upper case. Other identifiers start with a lower case. Subroutines (a. k. a. methods, functions) describe sub computations. They help break up a single big program into understandable components. When you call one (use it) you go to the place where its identified is defined, and then execute it. In the above case we are defining subroutine called main. In java every program must have the subroutine method main .

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents

Related Questions