Yes I understand The difference. JavaScript is client-side. Java is back-end. JavaScript is interpreted through the browser, and Java is compiled using a JVM.
But the reason I wan't to learn java is because it's a common programming language that can help me think like a programmer. My goal is to become a software engineer.