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.
Amalia
8 months agoAdelina
9 months agoAron
9 months agoYun
9 months agoKayleigh
9 months agoAriel
9 months agoTennie
10 months agoElza
10 months agoTommy
10 months agoAgustin
10 months agoLettie
10 months agoLashawn
10 months agoDeane
10 months agoLorrine
10 months agoCarmelina
1 year agoMargot
1 year agoMiles
1 year agoErin
1 year agoCletus
1 year agoWillis
1 year agoAbraham
1 year agoElin
1 year agoDanica
1 year agoHuey
1 year agoCasey
1 year agoZona
1 year agoJulian
1 year agoWhitney
1 year agoOlive
1 year agoLawrence
1 year agoJanine
1 year agoSantos
1 year agoTamra
1 year agoLorriane
1 year agoMona
1 year agoJerry
1 year agoSabra
1 year ago