EPAM Systems interview question

How to write a custom class loader in java?