• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

interface with parameters

 
Palraj Jayaraj
Ranch Hand
Posts: 36
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the meaning of <T> in the following

public interface Task<T> {
T execute();
}
 
Rob Spoor
Sheriff
Pie
Posts: 20661
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Generics
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic