Java Review
Java Review
| Given the following program:
|
Answer the following questions:
| Q 1: |
What does this program do when executed from the following command line:
java echo
|
|
|
| Q 2: |
What does this program do when executed from the following command line:
java echo This old man, he played one
|
|
|
| Q 3: | What does this program do when executed from the following command line:
java echo "This old man, he played one"
|
|
|
|
| Given the following program:
|
Answer the folling questions:
| Q 4: | What is the output from this program when executed from the following command line: java V2
|
|
|
| Q 5: | What does the third line of output represent?
|
|
|
| Q 6: | What is the purpose of the folling line from the vowelCount method?
temp = s.toUpperCase()
Where is toUpperCase() defined?
|
|
|
| Given the following program that uses a recursive method guessMyFunction called from the main progam:
|
Answer the folling questions:
| Q 4: | What is the output from this program when executed from the following command line: java runTests
|
|
|
| Q 5: | What does the third line of output represent?
|
|
|
| Q 6: | What is the purpose of the folling line from the vowelCount method?
temp = s.toUpperCase()
Where is toUpperCase() defined?
|
|
|
|