0

How can I override in a class this method from the extended class?

protected static <T extends Object> T getObject(ResultSet data){
    return null; 
}

I'm using java 7

nikis
  • 10,991
  • 2
  • 33
  • 45
gavioto
  • 1,552
  • 2
  • 14
  • 37

1 Answers1

3

You cannot override static methods in Java, because the Java design is so in short, no matter generic they or not. Please take a look on detailed explanation here.

Community
  • 1
  • 1
nikis
  • 10,991
  • 2
  • 33
  • 45