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{
some variables;
public void a()throws Excepion1,Exception2{....}
}
class B extends A{
variables...
public void a()throws E2,E3{.....}
}
Qns:
here override of methods occurs or not,ore else wil give
any compilation error or run properly..plz tell me briefly
whts happening with the above codes....

Answer Posted / sunita

Overriding methods cannot change the signature of the
overridden method. but runtime exception r not present in
signature so u can only add the runtime exception in
overriden method.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is instance example?

920


Give me an example of array and linked list? Where they can be used?

965


What is a values collection view ?

1038


What is length in java?

969


Can a constructor have different name than a class name in java?

1094


What is difference between overloading and overriding in java?

973


What is constructor chaining in java?

1027


Write a code to show a static variable?

1043


What is the purpose of the strictfp keyword?

1121


Why deletion in linkedlist is fast than arraylist?

1033


What are the three parts of a lambda expression? What is the type of lambda expression?

988


Is there a jre for java 11?

1014


How do you invoke a method?

959


Are arrays primitive data types?

1108


What is difference between iterator access and index access?

1015