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