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

What is difference between final and immutable?

810


What are variable names?

751


What is treeset in java?

784


What is the functionality of the stub?

815


Why do we need hashmap in java?

820


Name and explain the types of ways which are used to pass arguments in any function in java.

851


What is the difference between a method and a procedure?

800


What is string buffer?

746


How do you differentiate abstract class from interface?

761


What is Java Package and which package is imported by default?

857


Write a program to show whether a graph is a tree or not using adjacency matrix.

877


Does A Class Inherit The Constructors Of Its Superclass?

806


What is var keyword ?

947


Does java linked list allow duplicates?

775


What do you mean by checked exceptions?

771