Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is inner class?

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


Please Help Members By Posting Answers For Below Questions

What is a boolean field?

939


What is the use of arraylist class in java?

1056


What is tree node in java?

950


Is 0 true or is 1 true?

945


Can you make a constructor final?

1018


How does arraylist size increase in java?

1094


Can we create an object of private class?

948


What flag up means?

1017


Difference between predicate, supplier and consumer ?

1030


How strings are created in java?

1019


Is string is a data type?

929


What are the java ide's? Explain

1015


Why java is said to be pass-by-value ?

1018


Is java free for businesses?

1057


How do you reverse sort a list in java?

920