What is the difference between Access Modifier and Access
specifier?
Answer / nilesh.bhil@gmail.com
Access Modifier can define the ristrict level of visibility.
There are three types of Access Modifier.
1)Private
2)Protected
3)Public
There are four types of Access Mode.
1)Private
2)Protected
3)Public
4)Default or Pakage mode
Access specifiers define behaviour level of visibility.
The Access Specifier are
abstract, static, final, strictfp etc.
| Is This Answer Correct ? | 10 Yes | 7 No |
Can I learn java in 3 months?
What is java used for on a computer?
What are the two ways to create a thread?
what is the form of storage space in java?
This is my code i have a doubt class ab implements a,b { public void add() { System.out.println("Hi") } } interface a { public void add(); } interface b { public void add(); } in this code i have two interface implemented in the class has same method.just i want to know which method of interface implemented in the class. interface a or interface b? confused me .
What is the difference between compare and compareto in java?
Is 0 an irrational number?
Is java type safe?
What is difference between iterator access and index access?
There are 100 keys and values in HashMap.how to get the keys and values?
real time example for deadlock,starvation,livelock
import java.io.*; class Demo { public static void main(String args[]) { File f=new File("1234.msg"); String arr[]=f.list(); System.out.println(arr.length); } }