The equals method is defined in the Object class. Which of the following is correct to override it in the String class?

a. public boolean equals(String other)
b. public boolean equals(Object other)
c. public static boolean equals(String other)
d. public static boolean equals(Object other)


b. public boolean equals(Object other)

Computer Science & Information Technology

You might also like to view...

Define the following security terms.

a) digital signature b) hash function c) symmetric key encryption d) digital certificate e) Denial of Service attack f) worm g) message digest h) collision i) triple DES j) session keys

Computer Science & Information Technology

The ________ button is used to replace each instance of a word found all at once in the Find what field

Fill in the blank(s) with correct word

Computer Science & Information Technology

How can you preview transparency flattening?

What will be an ideal response?

Computer Science & Information Technology

Why would a laser printer be considered valuable evidence if it, along with the rest of the devices in the office, was shut off?

a. A printer's RAM is not volatile like that of a computer. Files might still be recoved if they were sent to the printer. b. The spooler file is stored on flash RAM in the printer. c. The toner cartridge retains a latent image of the last page printed even after the printer is turned off. d. The printer wouldn't be considered evidence.

Computer Science & Information Technology