Java/Classes ,Constructor ,Methods,Inheritance Sample Test,Sample questions

adplus-dvertising

Question:
Choose true for constructor ?

1.Constructor have a same name as the class

2.Constructor can use any access modifiers

3.Interface do not have a construct

4.All

Posted Date:-2022-01-07 10:18:42


Question:
How many basic types of inheritance are provided as OOP feature?

1.4

2.3

3.5

4.6

Posted Date:-2022-01-07 10:19:14


Question:
Java not supported?

1.multiple inheritance

2.Single inheritance

3.multiple level

4.All

Posted Date:-2022-01-07 10:19:52


Question:
Which of the following access specifies is used in a class definition by default?

1.Protected

2.Public

3.Private

4.Default

Posted Date:-2022-01-07 10:20:23


Question:
Which of the following keywords is used to control access to a class member?

1.Default

2.Break

3.Protected

4.Default

Posted Date:-2022-01-07 10:20:59


More MCQS

  1. Java Mcq Question Set 1
  2. Java Mcq Question Set 2
  3. Java Mcq Question Set 3
  4. Java Mcq Question Set 4
  5. Java Mcq Question Set 5
  6. Java Mcq Question Set 6
  7. Java Mcq Question Set 7
  8. Java Mcq Question Set 8
  9. Java Mcq Question Set 9
  10. Java Multiple Choice Questions
  11. DATA TYPES IN JAVA
  12. Classes ,Constructor ,Methods,Inheritance
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!