i am afraid that my image will loss resolution and quality
It will not. Read the posts again or try it yourself. Just unckeck "Resample" in the image size dialogue. Pixels will not change at all as I already wrote. It´s just some metadata in the document, nothing more.
and after 72 to 300 conversation my image height and width will change too.
Yes, that´s the intention of ppi/dpi. See: You have 3k pixels width for example. If you have 100ppi, your document size will be about 30 Inches. If you have 300ppi, your doc size will be about 10 Inches.
In both cases, your image has still 3000 pixel in one direction. See this equation:
ppi=pixelcount (pixels)/width (inch)
In your case, "pixelcount" will be always the same, it´s the constant. So when you alter ppi then width (size) has to change.
Good Luck
@romullus: You won this time ;)