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


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

1.4

2.3

3.5

4.6


Question: Java not supported?

1.multiple inheritance

2.Single inheritance

3.multiple level

4.All


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

1.Protected

2.Public

3.Private

4.Default


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

1.Default

2.Break

3.Protected

4.Default


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!