If you have been doing an IT job (Java Development), in a non-IT company then it should not be an issue for applying for a position in an IT company because for experience personnel, companies want to see how much you have done.
you can give the java certification exam this certificate is useful to you for getting good job in java, but you have to passed this exam.
You have experience and degree and also certified course which is good just don't over come of your fear of 2 years of gap just start applying for various IT / software companies . You will definitely get call for an interview. If you have knowledge and talent then definitely you will get placed in IT companies you can get list of IT companies here , http://companiesinindia.in/iso-certified-it-companies-in-india/ I think this will help you
You keep on trying for your dream job,never loose your hope,spread your cv maximum website of the company you need to join. Also you keep in touch with you program language at least once in a week,otherwise there is a possibility to forget it.
If you have learnt Java, then why don't you try your luck in startup companies in Pune, Bangalore, Mumbai, Chennai and Delhi. All these cities are known as startup hub for IT, Marketing and sales. Here, you will get freshers job in Java field.