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

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:-2019-03-14 23:24:50


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

1.4

2.3

3.5

4.6

Posted Date:-2019-03-14 23:24:50


Question:
Java not supported?

1.multiple inheritance

2.Single inheritance

3.multiple level

4.All

Posted Date:-2019-03-14 23:24:50


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:-2019-03-14 23:24:50


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:-2019-03-14 23:24:50


More MCQS

  1. DATA TYPES IN JAVA
  2. Integer and Floating Data Types
  3. Character and Boolean Data Types
  4. Data Type - Enums, BigDecimal, Date & TimeZone Literals & Variables
  5. Operators and Control Statements
  6. Java Environment & OOPS Concepts
  7. Classes ,Constructor ,Methods,Inheritance
  8. String Handling
  9. package java.lang & java.io
  10. Exception Handling
  11. Serialization & Networking
  12. Arrays,Type Conversions, Promotions & Castings
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!