in Education by
Which of the following statements are incorrect? (a) public members of class can be accessed by any code in the program (b) private members of class can only be accessed by other members of the class (c) private members of class can be inherited by a subclass, and become protected members in subclass (d) protected members of a class can be inherited by a subclass, and become private members of the subclass The question was posed to me in unit test. I'm obligated to ask this question of Access Control topic in section Classes and Methods of Java Select the correct answer from above options Java questions and answers, Java questions pdf, Java question bank, Java questions and answers pdf, mcq on Java pdf, Java questions and solutions, Java mcq Test , Interview Java questions, Java Questions for Interview, Java MCQ (Multiple Choice Questions),Core Java Questions, Core Java MCQ,core java interview questions for experiencedcore java interview questions for 3 years experience,java programming questions,core java interview questions for freshers,java interview questions and answers for freshers, java programming questions and answers pdf, java interview questions for beginners

1 Answer

0 votes
by
 
Best answer
Correct answer is (c) private members of class can be inherited by a subclass, and become protected members in subclass Easy explanation: private members of a class can not be inherited by a subclass.

Related questions

0 votes
    Which of the following statements are incorrect? (a) static methods can call other static methods only (b) ... questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of the following statements are incorrect? (a) Variables declared as final occupy memory (b) final ... questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of these statements are incorrect? (a) Assignment operators are more efficiently implemented by Java run- ... and answers pdf, java interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    Which of these is an incorrect array declaration? (a) int arr[] = new int[5] (b) int [] arr ... java programming questions and answers pdf, java interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    Which of these is an incorrect Statement? (a) It is necessary to use new operator to initialize an ... questions and answers pdf, java interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    Which of these statement is incorrect? (a) Every class must contain a main() method (b) Applets do ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of these are selection statements in Java? (a) if() (b) for() (c) continue (d) break I ... java programming questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of these selection statements test only for equality? (a) if (b) switch (c) if & switch (d ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of these jump statements can skip processing the remainder of the code in its body for a particular ... questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of the following constant are defined in Character wrapper? (a) MAX_RADIX (b) MAX_VALUE (c) TYPE ... questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of the following constant are defined in Boolean wrapper? (a) TRUE (b) FALSE (c) TYPE (d) ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of the following is not provided by BigDecimal? (a) scale manipulation (b) + operator (c) ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    Which of the following can be operands of arithmetic operators? (a) Numeric (b) Boolean (c) Characters ... questions and answers pdf, java interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    Which of the following loops will execute the body of loop even when condition controlling the loop is ... questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of the following is used with the switch statement? (a) Continue (b) Exit (c) break (d) ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
...