Multiple Choice
Consider the following declarations: public interface Encryptable
{
Void encrypt(String key) ;
}
Public class SecretText implements Encryptable
{
Private String text;
_____________________________
{
// code to encrypt the text using encryption key goes here
}
}
Which of the following method headers should be used to complete the SecretText class?
A) public void encrypt()
B) public void encrypt(String aKey)
C) public String encrypt(String aKey)
D) void encrypt(String aKey)
Correct Answer:

Verified
Correct Answer:
Verified
Q42: A/an _ is used to capture mouse
Q43: What role does an interface play when
Q44: Which of the following is an event
Q45: Which of the following statements about a
Q46: Consider the following code snippet: public class
Q48: Which of the following statements about an
Q49: Consider the following code snippet: public class
Q50: A method that has no implementation is
Q51: Which of the following is a good
Q52: Suppose you are writing an interface called