You want a class to have access to members of another class in the same package. Which is the most restrictive access that accomplishes this objective?

Back to Questions
A)

public

B)

private

C)

protected

D)

transient

E)

default access

 

Author Explanation :

default access would provide most restrictive access.

Answers Posted

PostedBy By: Saikiran K, at 04:29 AM on 20-April-2019

Answer Posted:

Explanation: protected

Result: Wrong Answer

PostedBy By: jayaprathap, at 02:41 PM on 08-April-2019

Answer Posted: E

Explanation: default access is the "package oriented" access modifier.

Result: Correct

PostedBy By: sunkara ganesh, at 09:46 AM on 08-April-2019

Answer Posted:

Explanation: protect is accessed in class and derived class also

Result: Wrong Answer

PostedBy By: Hussam Uddin, at 04:03 AM on 08-April-2019

Answer Posted:

Explanation: This more restri cted

Result: Wrong Answer

PostedBy By: Jigar Shah, at 03:43 AM on 08-April-2019

Answer Posted:

Explanation: I think none of above answer is correct. Actual answer should be internal but as internal is not an option, I have selected public here.

Result: Wrong Answer

PostedBy By: Shyam Prakash Pemmaraju, at 06:53 AM on 05-April-2019

Answer Posted: B

Explanation: B

Result: Wrong Answer

Back to Questions

© Copyright 1997 - 2019 | www.bestdotnettraining.com | www.deccansoft.com | All Rights Reserved.
 
Bestdotnet google plus
Enquiry Now



Input symbols