This particular scene is one that I suspect a lot of the people jumping on the “Troy Bolton is a douchebag” bandwagon either never watched, or somehow blocked out.
Allow me to refresh your memory:
Jack Bolton: “There’s nothing wrong with keeping your eye on the prize. In fact, if you don’t, you get left behind.”
Troy: “Yeah, I know. I-I’m just saying, I didn’t get my friends jobs at the club so they could… sit and watch me eat in the dining room.”