Question: what is the prerequisite for learning java?
Answer: Prerequisites. You must know at least the basics of how to use a computer, and should be able to start a command line shell. If you are new to programming then Introduction to Programming is strongly recommended. If you already know C++ or any other Object-Oriented language, Java should be easy to pick up.