Yes, some institutes offer free courses for learning java. However, you will have to pay for the certification and to take the examinations. Here is a list of online forums which offer free courses for learning Java
Codecademy
Coursera
Udemy
Learn java
edX