Answer Posted / sumit
One can prevent method overriding by marking the method final. if you make a method static and reuse it in the subclass it will hide the the super class method. This is called method hiding rather than overriding.
Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What invokes a thread's run() method in java programming?
Which software is used for java programming?
What is the purpose of checked and unchecked exceptions in JAVA?
What is the function of static in java?
Tell some latest versions in JAVA related areas?
What is replacefirst in java?
Is java free for businesses?
What is generic class?
Can inner class have constructor?
How do you check if a string contains only numeric digits?
How can a gui component handle its own events?
What does those terms actually mean included in the j.d.k i.6?
What does the exclamation mark mean in java?
public class Test { public static void main(String[] args) { int countA = 0; int countB = 0; int countC = 0; int countD = 0; int countE = 0; int countF = 0; int countG = 0; int countH = 0; int countI = 0; int countJ = 0; int countK = 0; int countL = 0; int countM = 0; int countN = 0; int countO = 0; int countP = 0; int countQ = 0; int countR = 0; int countS = 0; int countT = 0; int countU = 0; int countV = 0; int countW = 0; int countX = 0; int countY = 0; int countZ = 0; } } Can anybody tell me any alternate solution(like loop or something) to automate this initialization process. Ex:- for(char chr='A';chr<='Z'; chr++) { (int) String "count"+chr = 0; }
What is t in parametric equations?