Question: Is there any way to remove the URL from a URLClassloader?

If suppose we removed the URL from classloader what all possible problems can happen?

Answer: 
> 
> Is there any way to remove the URL
>  from a URLClassloader?
> 
> 
> 

No.

> 
> If suppose we removed the URL from
>  classloader what all possible problems
>  can happen?
> 
> 
> 

As you can't the question is pointless.
You could use `URL`s with `URLStreamHandler`s which shutdown, if you were desperate. That may not affect load classes and resources from already open Jar files.

I don't see a particular problem with this. Unlike `addURL` where a class may not be on the set of URLs when first asked for, and cannot be subsequently added.