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 do you mean by flow of struts?
What is the difference between access specifiers and access modifiers in java?
Add a value x to array from index l to r where 0 <= l <= r <= n-1
What is a “stateless” protocol ?
Differences between external iteration and internal iteration?
Can we convert stringbuffer to string?
What are the skills required for core java?
How do you override a variable in java?
What are the characteristics of Final,Finally and Finalize keywords.
What is the difference between private & public & friendly classes?
What is the purpose of javac exe?
what is the use of pojo (plain old java objects)? how it is interact with crystal reports? pls urgent
What are access specifiers in java ?
What is parameter example?
What is a null check?