Answer Posted / shahid
there is one "locha" in paragraph one of answer number 1.
since local classes are also inner classes which are defined within any block and that block can be a method's body.
class OuterSpace {
private String MessageComming = "is any body there";
void receiveMessage() { //outer c;lass method
class InnerSpace { //defining class in outter class method
public void receivingMessage() {
System.out.println("message send by eline is" +MessageComming);
}
}
}
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is the use of StringTokenizer class?
Is 64bit faster than 32 bit?
Can constructor be synchronized?
What is communist flag?
What is the purpose of checked and unchecked exceptions in JAVA?
Does a class inherit the constructors of its superclass in java programming?
Is class is a data type?
What is a class object?
Does printwriter create a file?
What are byte codes?
What is meant by main method?
Is java se open source?
Write a program to search a number in the given list of numbers.
What are the major advantages of internal iteration over external iteration?
How can you set an applet’s height and width as a percentage?