Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Can we have more than one package statement in the source file?

1113


I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?

1147


How do you use find and replace?

1007


What is the difference between array list and vector in java?

982


How can we make string upper case or lower case?

1142


How to perform binary search in java?

1043


How to change the priority of thread or how to set the priority of thread?

1095


What is methods in java?

1051


How do you remove an object from an arraylist in java?

1041


Explain an algorithm to find depth of a binary tree.

1105


Explain the concept of hashtables?

1225


What is the purpose of checked and unchecked exceptions in JAVA?

1073


Why is a singleton bad?

1007


When do we use synchronized methods in java?

1098


What is JDBC Driver interface?How can you retrieve data from the ResultSet

2152