Most people will say: Hi!
Then you can say: my name is …, nice to meet you!
The other person will also say: …, nice to meet you, I'm …
Then you can have other conversations:
I am a freshman (sophomore, junior and senior), and my major is ... Although I am not an English major, I love it! Can you give some advice on learning English well?