You can stay in the country after you have completed your UG or PG course and have acquired a job for yourself. If you are sure about the job offer, you must apply for a residence permit, which enables you to legally reside and work in Malta. In case you do not have a job after your graduation or studies, you can raise a request to extend your student visa for six months, during which you can find a job for yourself and permanently settle in Malta.