The Welshman has played for club since 1990 and has made over 600 appearances for Sir Alex Ferguson’s side and Hernandez believes the knowledge the 38-year-old passes onto the youngsters is invaluable.
"It is unbelievable news," the striker told the club's official site. "Ryan is a great player. He is a legend here. He is a very good example for football players all over the world, not only those at this club.
“We are delighted about it. Of course you learn from him. It doesn't matter that I'm a striker and he isn't.”
The Mexican also stated he was pleased to get the equalizing goal in United’s 3-3 draw with Chelsea last weekend, and feels it was an extremely important result for the team in the title race.
Hernandez believes everyone at Old Trafford is determined to win the League title for a record 20th time.
"My goal at Chelsea was very important for all the team, not only me," Javier said. "It was a great comeback, to be losing 3-0 away at Chelsea. It was very important. In the future, that point could change the title. So we are very happy.
"We are fighting for the title and will do that all season. Every Manchester United fan, all the players, the staff and the gaffer, want to fight. We want to win the league."