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
  • 11,166
  • 2
  • 35
  • 45
gavioto
  • 1,695
  • 2
  • 17
  • 38

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
  • 11,166
  • 2
  • 35
  • 45