Object-Oriented Programming. Both languages require the developer to code in terms of objects and their relationships to one another. By extension this gives both languages access to techniques like inheritance, encapsulation, and polymorphism.
Java is an object-oriented programming language and have virtual machine platform that allows you to create compiled programs that run on nearly every platform. Java promised, “Write Once, Run Anywhere”.
Java is an object -oriented programming language.
Java applications can run in any virtual machine (JVM) or browser.
Java program uses more memory.
Java has a thread -based approach to concurrency.
New learners always trying to make sense of the world, looking for patterns and correlations, and it’s sometimes easy to see a pattern where there isn’t one. In this particular case, it may seem like JS is derived from Java. But both are entirely different.