How to deprecate a method?
Show it with proper example.
Plz give the answer of this.Thanx in advance.
mail me: tanzeem.akhtar@gmail.com
Answers were Sorted based on User's Feedback
Answer / ravikiran
we cann't depricate a method.
Sun while introduces a new verion of release if similar
functionality method is about to introduce with less error
prone then they will depricatethe previous version's method
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / aslam
/**
* @deprecated
*
*/
public void depricatedMethod(){
}
Is This Answer Correct ? | 0 Yes | 0 No |
Write java code to print "Hello how are you" Thread1 should have "Hello" Thread2 should have "how are you" both the threads should start at the same time
What is files manifesting?
If goto and const is reserve words than why it is not work in java?
How applets will communicate with each other?
What is ternary operator in java?
What is string in java? String is a data type?
What is an object in java?
What are assembly attributes?
7) Suppose there is Student class like class student { int age; string name; } We want to store these objects in a HashMap. Do we need to override any methods in Student class? If any which ones and why? what if i just override equals or just hashcode? what will be the results in both the cases?
Can we execute a program without main?
what are the high-level thread states? : Java thread
why use interface? if interface declear a method implement in class. why direct implement method in class