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 the use of StringTokenizer class?

1015


Is 64bit faster than 32 bit?

1012


Can constructor be synchronized?

890


What is communist flag?

964


What is the purpose of checked and unchecked exceptions in JAVA?

954


Does a class inherit the constructors of its superclass in java programming?

1009


Is class is a data type?

1019


What is a class object?

916


Does printwriter create a file?

910


What are byte codes?

1133


What is meant by main method?

997


Is java se open source?

970


Write a program to search a number in the given list of numbers.

990


What are the major advantages of internal iteration over external iteration?

986


How can you set an applet’s height and width as a percentage?

875