what are the different access specifiers that can be used
by interfaces and abstract classes? can anyone give me
detailed description on this

Answer Posted / dhiren

public accsess specifier means it can publically accessed
by the class whether it's subclass of that class or present
in same packege or diffrent classes.

private access specifier is private to that class i.e. it
cant access out side the class

procted -it's accesesed by the sub class of the ckass
whether that present in the sane package or diffrent but it
must be a subclass

noacces accessed with in the same package

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we create object of inner class in java?

493


How do you download stubs from Remote place?

1352


What is a local, member and a class variable?

574


Explain about procedural programming language or structured programming language and its features?

544


Is singleton thread safe in java?

545






What is command line argument

704


What are the restrictions that are applied to the java static methods?

522


What is difference between float and double?

496


Is alive and join method in java?

536


What is this () in java?

573


hi am an engineering student and my next plan is for ms in either in us or australia i got my passport but i dont know anything bout visa can u give brief idea 1)How to get prepared for visa and 2)How to apply for top universities and 3)How to pay the fee and so on These all are basic questions plz give me a clear idea

1458


What are the different types of garbage collectors in java?

543


What is use of functional interface in java 8? Explain

565


I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com

1072


What is the benefit of lambda expressions?

488