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...

class A{ void me(){s.o.p("");} class B extends A{ void me()
{s.o.p(" ");} class M{ A a=new B(); B b=new A(); a.me();
b.mne();} what is the output of this, how?

Answer Posted / sk

B b=new A();

you cannot assign a superclass object to a reference of
subclass.

Is This Answer Correct ?    21 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can u send some model papers how computer awareness questions are asked in goverment jobs(oriental insurance)to my mail id me.priyankapadma@rediff.com

2349


if 3 duplicate records, by keeping one original and one duplicate record, and how to delete remaining 2 duplicates in sql server 2008

2099


what is technical system, business system, logical system in sap pi7.0

2540


Suppose server object is not loaded into the memory, and the client request for it , what will happen?

2613


What ports must be open for DCOM over a firewall? What is the purpose of Port 135?

7833


If i have a dataset queried from Sql and I would like to insert the dataset into a specific node in an xml document how do I do this

2073


Difference of Console, web & windows applications?

2138


how to fin top two miximum values in sql? not 2nd both max value of 1st and 2nd both have to find out

1866


what is the last ant version you worked?how to get it

1897


What is the first message line that any language learning prints on the screen? and why?

2080


Hi Guys, This is Rama, right now I am working as a Software Test Engineer in Gurgoan and I have over all 3 years of testing expoeriance. Right now I am looking for a change. Can any body help me out to find a job in south india. Thanks in Advance

1836


HOW TO FIND NUMBER OF TWOS IN N!(N FACTORIAL)??

2208


what is c sharp dotnet

2213


hoe to data grid use in sql server 2000?

2027


Describe the difference between Interface-oriented, Object-oriented and Aspect-oriented programming

11868