EECS 132 Final UPDATED Exam Questions and CORRECT Answers
2 views 0 purchase
Course
EECS 132
Institution
EECS 132
EECS 132 Final UPDATED Exam
Questions and CORRECT Answers
What are primitive types? - Correct Answer- The eight most basic data types
What are the primitive types? - Correct Answer- boolean, byte, char, short, int, long, float,
and double
What is a boolean - Correct Answer- returns true or f...
EECS 132 Final UPDATED Exam
Questions and CORRECT Answers
What are primitive types? - Correct Answer- The eight most basic data types
What are the primitive types? - Correct Answer- boolean, byte, char, short, int, long, float,
and double
What is a boolean - Correct Answer- returns true or false
what is a byte - Correct Answer- 8 bits
what is a char - Correct Answer- a single character assigned to a numerical value
what is a short - Correct Answer- 16 bits
what is an int - Correct Answer- A whole number integer
what is a long - Correct Answer- 64 bits
what is a float - Correct Answer- 32 bits
what is a double - Correct Answer- a decimal value
what is the object class - Correct Answer- Superclass containing methods like boolean equals,
toString, and getClass
what is the string class - Correct Answer- class representing strings of characters, contains
methods such as charAt, equals, contains, indexOf, isEmpty, etc
, what is the StringBuilder class - Correct Answer- class allowing a string to be created
containing methods such as append, charAt, replace, etc
what are wrapper classes - Correct Answer- Wrapper classes are classes that allow primitive
types to be accessed as objects, they are Character, Short, Integer, Float, Long, Byte, String,
Double, Boolean, etc.
what is the comparable interface - Correct Answer- It is used to sort collections and arrays of
objects using the collections.sort() and java.utils. The objects of the class implementing the
Comparable interface can be ordered
what is the iterable interface - Correct Answer- interface allowing an object to be the target of
the for each loop
What is the Iterator interface? - Correct Answer- - defined as part of java standard class
library
- hasNext(), returns a boolean result and
- next() returns object
what is a data type - Correct Answer- a particular kind of data item, as defined by the values
it can take, the programming language used, or the operations that can be performed on it
what is typecasting - Correct Answer- assigning a variable of one type to a variable of another
type
when does implicit typecasting occur - Correct Answer- when the primitive is typecasted to a
wider data type
when is explicit typecasting required - Correct Answer- when the primitive is typecasted to a
narrower data type
list primitive types from narrow to widest - Correct Answer- byte, short, int, long, float,
double
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 MGRADES. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $7.99. You're not tied to anything after your purchase.