Can my landlord come into my apartment whenever he or she wants to do so?
No, they absolutely cannot. However, there are going to be times, maybe in an emergency situation he may be allowed to come in. Generally, the landlord needs to give you adequate notice and can only come in at a reasonable time. Check your lease, it might say something about that.