Java code/ JSP page in wordpress

No. WordPress is written in PHP which is not Java.

Maybe you can configure your webserver in a way to proxy a certain URL to be handled by some Java Server, but this is definitely not a WordPress issue and would be off topic here. You can try with sister sites like https://serverfault.com/ though.