Assignment 1

Homework - Lesson 1.4


1.  What are the 3 major steps for creating and running a piece of software?




2. Java compiles into byte code, which can then be run by a JVM.  What is the advantage on this over many other high level languages?  (Hint: think distribution).




3.  What is the difference between a View and a Perspective in Eclipse?




4. Write valid or invalid next to each of these identifiers.  If you want to check the Java keywords, they are on the back of this sheet.

than            when            40acres        one_quarter
tan            Case            40_acres        three-tenths
then            _switch        $40            surprise!
.hen            5if            Dr.Monk        OMG
w_hen            isn’t            quote”sign
ben-ben        if5            two/fifths


5.  Write by hand below, a simple method called hiMom, that prints the words “hi mom”.  (It does not have to run as a program.)  This exercise is show where the parens, brackets and semicolons go.











abstract
continue
for
new
switch
assert
default
goto
package
synchronized
boolean
do
if
private
this
break
double
implements
protected
throw
byte
else
import
public
throws
case
enum
instanceof
return
transient
catch
extends
int
short
try
char
final
interface
static
void
class
finally
long
strictfp*
volatile
const
float
native
super
while


No comments:

Post a Comment