There are certain differences , but finally JSP converted into the JAVA code (Servlet class) by the container.
Mostly JSP (Java Server pages) is used as the view part in web application where you can type the HTML code and also the java code with the help of the scriptlets.
Plain Java is used in variety of aspects like writing business logic .