Java is for developping small pieces of code. It is a static typed language, class-based. Its functions are called at object creation. It is essentially used to design compiled programs that are compatible with every platform without direct access to the source code.
They are very different despite the names similarity. The both use common C syntax, and some names conventions.