Tadhg Butler, of 30 Seafield, Tramore, Co Waterford, was arrested at 11.41pm on Thursday at the Seafield holiday estate after Michael O’Dwyer was found wounded by emergency services.
Mr O’Dwyer died in the early hours of Friday morning after being brought to Waterford Regional Hospital.
Gardaí questioned Mr Butler — who is originally from Co Kilkenny — throughout Friday at Tramore Garda Station.
He was later charged and brought before a special sitting of Waterford District Court on Saturday.
Det Sgt Shay Keevans told the court that he arrested the suspect at the scene in Seafield on Thursday night and that Mr Butler was detained at Tramore Garda Station under Section 3 of the Non Fatal Offences Against the Person Act.
He charged the accused at 1.52am on Saturday morning and told the court that Mr Butler made no reply when charged.
Supt Finbar Murphy applied for a remand in custody and there was no objection from defence solicitor Ken Cunningham.
Mr Cunningham indicated that he will be making an application for bail to the High Court on his client’s behalf and also applied for free legal aid and for Mr Butler to be psychiatrically assessed and monitored in prison.
These requests were acceded to by Judge Kevin Staunton.
The judge remanded Mr Butler in custody, to appear again at Waterford District Court tomorrow.
Mr O’Dwyer was originally from Kilkenny City but lived for the last number of years outside Stoneyford in Co Kilkenny with his mother Geraldine.
His father died in 2011. He was the second-youngest of five sons.
It is believed he was visiting an apartment in the Seafield estate close to Tramore’s seafront on Thursday and was fatally stabbed in the chest when an incident occurred.
Professor Marie Cassidy, the state pathologist, performed an autopsy on Mr O’Dwyer’s body on Friday afternoon.