Which of the following should usually be private?
A) Methods.
B) Constructors.
C) Variables (or fields) .
D) All of the above.
Correct Answer:
Verified
Q2: A constructor cannot:
A)be overloaded.
B)initialize variables to their
Q4: A programmer-defined constructor that has no arguments
Q15: The static method _ of class String
Q16: Which of the following is false?
A) Method
Q18: Which of the following statements is true?
A)Methods
Q20: When should a program explicitly use the
Q21: Which syntax imports all static members of
Q22: By default,the classpath consists only of the
Q24: When no access modifier is specified for
Q24: The import declaration import java.util.*;is known as
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