Comp 248 final Exam Study Guide.
Index starts at - answerstarts at 0
wrapper class def - answerA class that contains a primitive type value, such as Integer.
accessor method def - answermethod that accesses an object and returns some information
about it, without changing the object
constructo...
Java interpreter - answer✔a program that coverts bytecode into machine language and executes
the bytecode instructions line by line
Java compiler - answer✔translates a java source file into a file that contains byte code
instructions
types of errors - answer✔compiler time (syntax), run-time, logic
rules of identifiers - answer✔can contain $ and _ but cannot begin with a digit or symbol and
cannot contain other symbols (&@?!)
%5d - answer✔5 spaces to the end of the number
%.2f - answer✔two digits after decimal point
%7.2d - answer✔7 spaces until the end and two digits after decimal point
is "final" a reserved word in java? - answer✔yes
with which datatype %d - answer✔integer
with which datatype %s - answer✔string
%n - answer✔new line
output of
"Hello%nWorld%n" - answer✔Hello
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.