There are ways to program that use little text, but many lines of code. There are others that require more typing, but use fewer lines of code. If there is a maximum length for a line of code, this means it exists as a predefined space of memory in the computer, and making many short lines will waste this predefined space. If this is the case, your program can be a lot smaller by putting in the time to consolidate onto fewer lines. Otherwise, many short, easier to program lines would be the obvious choice.
A method has give or take 65k bytes of bytecode. However there are no limits on how many lines you write apart from the system's possible limitations (if any).
However you should always follow code-style guidelines in respect to your language to make code readable.
To directly answer your question (as I should've done already) - No. There is no maximum length of a line in Java.