what are the different access specifiers that can be used
by interfaces and abstract classes? can anyone give me
detailed description on this
Answer Posted / vishal arora
This question leads to two things
1. modifier for abstract class or interface
2. modifier for members of abstarct class or interface
For first in abstract class and interface we can have
public , protected and default and not private if it is top
level otherwise private also if it is nested
for point 2
in an interface every member variable is public and final
in an abstract class you can assign any modifier to member
variables
| Is This Answer Correct ? | 10 Yes | 0 No |
Post New Answer View All Answers
Why there are some null interface in java? What does it mean?
How does a for loop work java?
How do you sort data in java?
How does hashmap work in java ?
What is an interoperable application in java ?
What is the difference between C++ and Java and your preferences?
What does yield method of the thread class do?
What is size of int in java?
What is ternary operator? Give an example.
Why is core java important?
What is the difference amongst jvm spec, jvm implementation, jvm runtime ?
Hi all, I am dng a mini project on FileSplitter application which splits the GBs of logfile into Smaller chunks(mbs) depending on the split size." How to handle GBs file? I am getting OutOfMemoryException, when I input such GB sized file. Thx
Which is bigger float or double?
Where is the singleton class used?
Give few examples of final classes defined in Java API?