COMP 248 – Final Exam Study Guide.
Java compiler - answerbytecode that translates source code
Java interpreter - answertakes Java bytecode and converts into machine language and executes
it
Algorithm - answera step-by-step process for solving a problem
Pseudocode - answerdetailed description...
compiler time errors - answer✔syntax error, system will tell you the problem
run time errors - answer✔Errors that occur when the program is being executed.
logic errors - answer✔semantics, bug in the program or mistake in algorithm that program may
run but doesn't execute the way you wanted it to
identifier - answer✔words programmer uses in program to name variables, classes, methods
Rules when naming an identifier - answer✔letters, digits, underscore, dollar sign
CANNOT: begin with a digit, be reserved word, not too long
what are the 3 primitive types - answer✔numeric, characters, boolean
numeric type - answer✔all integers; int, byte, int, long
floating point numbers; float, double
character type - answer✔char ('a')
boolean values - answer✔boolean (T/F)
variable - answer✔giving name to a location (ex. int total)
constant - answer✔holds one variable (all capital)
output - answer✔System.out.println(" ");
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller sirjoel. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $10.49. You're not tied to anything after your purchase.