for a while I was learning java however I stopped because I was thinking to learn java and JavaScript does not change anything in my game and was wondering if java even learn something changes in Unity3D ps: i am new
Java and Javascript are different programming languages. Heck, Unity's Javascript is sometimes called UnityScript. Take a look at this: http://www.java.com/en/download/faq/java_javascript.xml
It is not sometimes called UnityScript, it actually IS UnityScript. To be more precise: It may resemble JavaScript in some ways, but calling it JavaScript is wrong, because it is not. No idea why it's so commonly referred to as JS, maybe because it seems to be syntactically the same here and there and people know JS. Apart from that, yes. Java ≠ JavaScript. However, to answer the question: Stick to JavaScript/UnityScript if you only got these two options for programming with. Java won't do a thing in Unity, but JavaScript/UnityScript does. My recommendation though is to use C#. Quite easy to learn, similar to Java and fully usable with Unity.