Which of the following commands is most useful for viewing large files?
The following two code are used to retrieve Attribute1:
1.Object obj=session1.getAttribute('Attribute1'); The getAttribute() method is used to retrieve the bound object with the specified
name in this session, or null if no object is bound under the name.
2.Object obj=binding1.getSession().getAttribute('Attribute1'); The getSession() gets the current valid session associated with this
request.
Answer E and C are incorrect. These code are invalid because the getAttribute() method returns an object instead of a long object or
a String object.
Answer B is incorrect. The HttpSessionBindingEvent object cannot use the getAttribute() method.
Carmelina
3 months agoMargot
2 months agoMiles
2 months agoErin
2 months agoCletus
3 months agoWillis
3 months agoAbraham
2 months agoElin
2 months agoDanica
2 months agoHuey
2 months agoCasey
2 months agoZona
2 months agoJulian
3 months agoWhitney
3 months agoOlive
4 months agoLawrence
2 months agoJanine
2 months agoSantos
2 months agoTamra
2 months agoLorriane
4 months agoMona
4 months agoJerry
4 months agoSabra
4 months ago