What is default specifier ??? Use of default specifier ???

Answer Posted / prativa mohapatra

Java provides a default specifier which is used when no
access modifier is present. Any class, field, method or
constructor that has no declared access modifier is
accessible only by classes in the same package. The default
modifier is not used for fields and methods within an
interface.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to sort list of list in java?

883


What is difference between throw and throws ?

865


What is binary tree in java?

770


Is a case study a method or methodology?

659


how to split string in java?

877


Why is stringbuffer faster than string?

700


Does variable declaration allocate memory?

796


Mention some features of java?

741


What are the steps involved to write rmi based programs?

783


What are the advantages of functions?

716


Can we split string with in java?

754


Which data type is a class in java?

775


What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?

737


How static variable work in java?

823


Are arrays static in java?

799