What is public/private protected in java?
Answer / Hitesh Pandey
In Java, access modifiers include: "public" (can be accessed from any class or package), "protected" (can be accessed within the same package and subclasses of other packages), and "private" (can only be accessed within the same class).
| Is This Answer Correct ? | 0 Yes | 0 No |
Why does java have two ways to create child threads?
Explain JMS in detail.
What is the size of integer?
Explain about GridBag Layout?
What is the importance of main method in Java?
What is default specifier ??? Use of default specifier ???
How do you write a conditional statement?
What is internal variable?
What do you mean by default constructor in java?
they asked class A{} class B{} class c{} all the three class saved as a single file,there is no main method in the file and anothe class M.java class m { psvm(String args[]) { // here the parent class can access } }
2 Answers DNS, IPSR Solutions,
What is multithreading in java?
How do you differentiate abstract class from interface?