Now in lollipop notifications are also displayed on your lock screen.
click on that notification display sensitive content,
so you can make sure this is kept hidden until you enter your passcode/pattern.
Go to Settings -> Sound and Notifications
Click on -> ‘When device is locked’
select ->‘Hide sensitive notification content’.
You can also hide all notifications if you wish to hide notification alerts completely.