A 35-year-old man has appeared in court in Dublin charged with the murder of a 16-year-old boy. 

He was remanded in custody to appear again in court next week.

The judge in the District Court, sitting in the Courts of Criminal Justice, ordered that neither the victim nor the accused be identified.

The boy cannot be identified because of restrictions under the Children's Act.

The man also faces a second charge of producing a knife during the course of a dispute.

Sergeant Shane Noone gave evidence of arrest, charge, and caution.

He told the court that he arrested the accused for the purpose of charging him at 12.15pm today.

When the charges were put to the man an hour and a half later he made no reply to the first one and to the second he replied "This is a charge or this is a final decision." 

There was no application for bail as bail in murder cases can only be granted in the High Court. 

The court was told the accused is not a person of means and free legal aid was granted.

A solicitor for Independent Newspapers, Fergus Foody, asked the judge for the basis of the order preventing the publication of the name of the accused.

Judge John Campbell said it was his view that identifying the accused could give way to identifying the victim. 

When the solicitor asked the judge again for the legal basis for the order the judge replied "That's my decision" and left the bench.

The accused was remanded in custody to appear again by video link at Clover Hill District Court next Thursday.