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
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
if 3 duplicate records, by keeping one original and one duplicate record, and how to delete remaining 2 duplicates in sql server 2008
what is technical system, business system, logical system in sap pi7.0
Suppose server object is not loaded into the memory, and the client request for it , what will happen?
What ports must be open for DCOM over a firewall? What is the purpose of Port 135?
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
Difference of Console, web & windows applications?
how to fin top two miximum values in sql? not 2nd both max value of 1st and 2nd both have to find out
what is the last ant version you worked?how to get it
What is the first message line that any language learning prints on the screen? and why?
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
HOW TO FIND NUMBER OF TWOS IN N!(N FACTORIAL)??
what is c sharp dotnet
hoe to data grid use in sql server 2000?
Describe the difference between Interface-oriented, Object-oriented and Aspect-oriented programming