• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 8 pages
Exam (elaborations)

ITCS-1213 Questions With Solutions

Document preview thumbnail
Preview 2 out of 8 pages

What is the return data type of the String class equals() method? - Correct Answer boolean What is the return type of the String class compareTo()method? - Correct Answer boolean What is the return type of the constructor method of a class? -Correct Answer no return type is allowed A class can have many different constructor methods as long as the names are different, True or False -Correct Answer False In a class definition file, each method must have a different name, True or False -Correct Answer True A class is an object, True or False -Correct Answer False Only one instance can be created from a class definition, True or False -Correct Answer False

Content preview

ITCS-1213 Questions With Solutions

What is the return data type of the String class equals() method? -

Correct Answer ✔ ✔ boolean


What is the return type of the String class compareTo()method? -

Correct Answer ✔ ✔ boolean


What is the return type of the constructor method of a class? -Correct

Answer ✔ ✔ no return type is allowed


A class can have many different constructor methods as long as the

names are different, True or False -Correct Answer ✔ ✔ False


In a class definition file, each method must have a different name,

True or False -Correct Answer ✔ ✔ True


A class is an object, True or False -Correct Answer ✔ ✔ False


Only one instance can be created from a class definition, True or False

-Correct Answer ✔ ✔ False

, More than one reference variable can hold the address of an object,

True or False -Correct Answer ✔ ✔ True


Every object has a reference variable holding its address, True or False

-Correct Answer ✔ ✔ False


Every object must have a name, True or False -Correct Answer ✔ ✔

True


Fields and variables are the same thing, True or False -Correct Answer

✔ ✔ False


The two categories of data types in Java are -Correct Answer ✔ ✔

Primitive and reference


Once an object is created you can call the constructor method again

to charge the value of the fields, True or False -Correct Answer ✔ ✔

False


A constructor for a class can be called many times to create instances,

True or False -Correct Answer ✔ ✔ True

Document information

Uploaded on
June 23, 2025
Number of pages
8
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$8.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
jackline98
3.3
(61)
Sold
273
Followers
152
Items
9731
Last sold
2 months ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions