单项选择题

下列方法中,返回Session中存在的属性名的是()

A.getAttribute()
B.getAttributeNames()
C.getServletContext()
D.removeAttribute()