Top OOPS concept interview questions to get hired Top OOP concepts | Page 3

When you proclaim two static techniques with same name and mark in both superclass and subclass then they shroud each other for example a call to the technique in the subclass will call the static strategy pronounced in that class and a call to a similar strategy is superclass is set out to the static strategy proclaimed in the super class. Is Java an unadulterated article situated language? if not why? Java is definitely not an unadulterated item situated programming language for example there are numerous things you can manage without articles for example static techniques. Additionally, crude factors are not questions in Java. See the response for a progressively point by point clarification. What are standards of technique over-burdening and abrogating in Java? A standout amongst the most significant standards of strategy over- burdening in Java is that technique mark ought to be diverse for example either the quantity of contentions or the kind of contentions. Just changing the arrival sort of two techniques won't bring about over- burdening, rather, the compiler will toss a blunder. Then again, strategy abrogating has more standards for example name and return type must be same, strategy mark ought to likewise be same, the over-burden technique can't toss a higher special case and so forth. See the response for a full rundown of guidelines identified with technique over- burdening and superseding in Java. The contrast between strategy over-burdening and superseding? A few contrasts yet the most significant one is that strategy over- burdening is settled at aggregate time and technique abrogating is settled at runtime. The compiler just utilized the class data for strategy