This might seems to be an easy question but I have searched and found no solution for this query of mine.

I would like to know if it is possible to directly inject subscribers from a web page submit form which is built in java and where email and phone number are being captured, (we are not using cloud pages form)

Use that email address in journey builder to send email and SMS.