No, as long as you don't have a timeline/deadline to learn for a class or for some work related activity, you can take as long as you want and people learn at different paces.
While I don't know java in depth, I know that people commonly spend multiple classes in college (so years of studying it) studying java and even intro java classes are commonly 4 month (full semester) courses.