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

Write down program for following scenario. Use java coding standard. You have array list with some words in it..we will call it as dictionary….and you have a arbitrary string containing some chars in it. You have to go through each word of dictionary and find out if that word can be constructed with the help of chars from arbitrary string given. If you find the word print it else print none.

2283


How do you implement tree mirroring in java?

597


What is java beans?

576


What is a buffer in java?

575


In java, how we can disallow serialization of variables?

557






What is the difference between logical data independence and physical data independence?

535


Is a copy constructor?

578


What is a “stateless” protocol ?

559


Is array size fixed in java?

542


why Java does not support multiple inheritances?

704


What modifiers may be used with an inner class that is a member of an outer class in java programming?

536


Which data type is a class in java?

573


What are data types in oop?

555


What is static in java?

561


How are the elements of a gridbaglayout organized?

546