Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

Java @Deprecated annotation

class Main {
  /**
   * @deprecated
   * This method is deprecated and has been replaced by newMethod()
   */
  @Deprecated
  public static void deprecatedMethod() { 
    System.out.println("Deprecated method"); 
  } 

  public static void main(String args[]) {
    deprecatedMethod();
  }
}
Comment

PREVIOUS NEXT
Code Example
Java :: limit decimals java 
Java :: change color in recyclerview 
Java :: random value between 10-20 
Java :: input arraylist in java 
Java :: string into ascii in java 
Java :: Java List Access Elements using get() method 
Java :: creating an object in java 
Java :: get node inside node in of xml using java 
Java :: get string size 
Java :: recyclerview adapter multiple view types 
Java :: Passing data from an activity to a fragment 
Java :: can we have abstract class having no abstract method in java? 
Java :: java servlet life cycle 
Java :: Declaring a Java Method 
Java :: Java Iterating through LinkedList 
Java :: can we serialize class in java 
Java :: Java forEach() Method 
Java :: java put() method 
Java :: join strings in java 
Java :: combobox index out of bound javafx 
Java :: android activity set action bar options 
Java :: receive an int from terminal java 
Java :: Develop the Java application called Shapes. For this program, use only for loops and the following print statements below to generate the shapes below: 
Java :: java inser at index 
Java :: Transversal operation in java array 
Java :: split email on dot java 
Java :: Get generic type of class at runtime 
Java :: random numeros negativos java 
Java :: java find index of first alpha character in string 
Java :: android string animation 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =