I always think of it like baking. you have a recipie for a cake, a sign saying what kind of cake it is, and a kitchen.
the recipie is the class file, or cake.java
then you leave directions for your chef to make you a birthday cake. so you say "make me a birthday cake, and use the cake recipie".
or...
later, you will learn about
polymorphism and inheritance, where you could say
as to why Java is useful to EE or ME... maybe it's not Java itself, but the fact that you're gonna learn about logical thinking, how to approach a problem, analyze and break it down, etc.