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