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?
> 
> 
> 

AFAIK, no.

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

Well, for a start it can break code that relies on being able to dynamically load classes and resources. It is also possible this kind of thing could be used to break security sandboxes.

Why are you considering doing this?
> 
> 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.