Answer Posted / jettimadhuchowdary
public class MainTest {
private int localPr =1;
public int localPb = 20;
protected int localPro = 3;
int localDf = 5;
/**
* @param args
*/
public static void main(String[] s) {
// TODO Auto-generated method stub
MainTest mainTest = new MainTest();
InnerClass class1 = mainTest.new InnerClass();
class1.call();
}
class InnerClass
{
void call() {
System.out.println(" display data localDf ="+ localDf);
System.out.println(" display data localPro ="+ localPro);
System.out.println(" display data localPb ="+ localPb);
System.out.println(" display data localPr ="+ localPr);
}
}
}
and the output is
display data localDf =5
display data localPro =3
display data localPb =20
display data localPr =1
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What are the 6 boolean operators?
What is the main function in java?
What is a java predicate?
What are the topics in core java?
What is comparable and comparator interface? List their differences
What is a list in java?
Why can we not override static method?
Explain about the dynamic behavior of core java?
What is reverse function?
What happens to the Exception object after handling an exception?
What is string english?
What is a method header?
What is classes in java?
Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?
Describe the Big-O Notation.