hai
Error and exception are both mistake there is some little diffrenence .
Error occured in complication time. exception occured in running time
Type: Posts; User: redbhuvanes; Keyword(s):
hai
Error and exception are both mistake there is some little diffrenence .
Error occured in complication time. exception occured in running time
private member cannot access by another class besc the life time of variable is ended in that same class .so that we cannot access the variable in outside of class but in innerclasses especially
Java Inner Classes
class A {
private a;
class B {
private b;
void f() {
b = a+a; // accessing pvt. var of A
}
public g(){
B myObj = new B();