• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error in Spring using JDBC  RSS feed

 
Kumbhar Mahesh
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
public class StudentJDBCTemplate implements StudentDao

above class giving error as

The type StudentJDBCTemplate must implement the inherited abstract method
StudentDao.listStudents()


Interface is as below
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!

The type StudentJDBCTemplate must implement the inherited abstract method
StudentDao.listStudents()

The error is telling you, you need to implement the listStudents() method in your StudentJDBCTemplate class.

If you are not sure what it means, check out http://docs.oracle.com/javase/tutorial/java/IandI/usinginterface.html
 
Kumbhar Mahesh
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Already method is there in class file


 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hint: Java is case sensitive.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And you are going to get more errors because of the return type
 
Kumbhar Mahesh
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Maneesh,

Resolved in listStudent...........



 
Kumbhar Mahesh
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ya now getting error for getStudent()
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!