During testimony with who present? How was it given to the judge without the prosecutor knowing? A conviction? As an adult? Had your lawyer had a pre-trial meeting with the judge about it? What does your lawyer say?
Asking hypotheticals doesn't really help much.