Difference between default and protected access specifiers?
Answer / Sunder Lal
By default, all variables and methods in Java have package-private (default) access. Protected access allows subclasses from a different package to access the variable or method. In contrast, default access only allows access within the same package.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain java coding standards for interfaces?
Java support call by reference (pass by reference) ?
What is the return type of a program?s main() method?
how to handle exceptions in ejb?
program to validate the IP address? Validity range should be 0 to 255
What is the use of jtable?
What is a method header?
What occurs when an object is constructed?
Explain wait(), notify() and notifyall() methods of object class ?
Can we catch more than one exception in a single catch block?
int a=1,b=10; System.out.println(a+b--);
What is e java?