单项选择题

下列方法中,用于Session对象移除数据的是()

A.setMaxInactiveInterval()
B.setAttribute()
C.getAttribute()
D.removeAttribute()