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
Can we have more than one package statement in the source file?
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?
How do you use find and replace?
What is the difference between array list and vector in java?
How can we make string upper case or lower case?
How to perform binary search in java?
How to change the priority of thread or how to set the priority of thread?
What is methods in java?
How do you remove an object from an arraylist in java?
Explain an algorithm to find depth of a binary tree.
Explain the concept of hashtables?
What is the purpose of checked and unchecked exceptions in JAVA?
Why is a singleton bad?
When do we use synchronized methods in java?
What is JDBC Driver interface?How can you retrieve data from the ResultSet