What is the function of the dot operator?
A) It serves to separate the integer portion from the fractional portion of a floating point number
B) It allows one to access the data within an object when given a reference to the object
C) It allows one to invoke a method within an object when given a reference to the object
D) It is used to terminate commands (much as a period terminates a sentence in English)
E) Both B and C are correct
Correct Answer:
Verified
Q2: In Java a variable may contain
A) a
Q3: Consider the following two lines of code.
Q4: Which of the following will yield a
Q5: Say you write a program that makes
Q6: What is the advantage of putting an
Q8: The String class' compareTo method
A) compares two
Q9: An "alias" is when
A) two different reference
Q10: The advantage(s) of the Random class' pseudo-random
Q11: In the StringMutation program shown in Listing
Q21: Java.text's NumberFormat class includes methods that
A) allow
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents