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