Monday, May 24, 2010

PPLEASSE HeLP JAVA TEST TOMORW (ERRORS)?

identify the type of error caused by:


a.) int share=5.012.0;


b.) int rate = 501(x-x);


c.) double avg = (double) (a+b+c) /3, where a,b, and c are int values





either runtime, compile time, or logical

PPLEASSE HeLP JAVA TEST TOMORW (ERRORS)?
a) compile error


b) logic error


c) runtime error
Reply:YOu could just try them out, eigh? Do you have command line java available? Just type it up into a class and try to compile and see what happens.


Also review a chapter on java data types. It's pretty short. THere you can see all the rules. It'll take you 10 minutes...


(in short: I don't know =^ - ^=)
Reply:a) compile error


b) logic error


c) runtime error


No comments:

Post a Comment