Of course, you can definitely learn Java in 3 months. However, you will most likely be able to only acquire a working knowledge of Java in that period. To become a proper Java programmer, it can take you between two to three years.