Java Files Extensions - What are java files and how do I open a java file?

What are java files and how do I open a java file?

File Type Category File Format
.jnlp Java Files Java Web Start File
.jsp Java Files Java Server Page
.jws Java Files Java Web Services File