in Education by
Which of the following code is used to get an attribute in a HTTP Session object in servlets? (a) session.getAttribute(String name) (b) session.alterAttribute(String name) (c) session.updateAttribute(String name) (d) session.setAttribute(String name) I got this question in homework. I need to ask this question from Servlet in portion Java Server Technologies & Servlet of Java Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
Right choice is (a) session.getAttribute(String name) Easiest explanation: session has various methods for use.

Related questions

0 votes
    Which method is used to get three-letter abbreviation for locale's country in servlets? (a) Request.getISO3Country( ... Servlet of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which of the following is true about servlets? (a) Servlets execute within the address space of web server (b) ... & Servlet of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which of the following code retrieves the body of the request as binary data? (a) DataInputStream data = new ... & Servlet of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    What type of protocol is HTTP? (a) stateless (b) stateful (c) transfer protocol (d) information protocol This ... & Servlet of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Can servlet class declare constructor with ServletConfig object as an argument? (a) True (b) False I have been ... & Servlet of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which mode allows us to run program interactively while watching source code and variables during execution? (a) ... Servlet of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which perspective is used to run a program in debug view? (a) java perspective (b) eclipse perspective (c) debug ... & Servlet of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Servlet are used to program which component in a web application? (a) client (b) server (c) tomcat (d) ... & Servlet of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which component can be used for sending messages from one application to another? (a) server (b) client (c) mq ... & Servlet of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which of the below can be used to debug front end of a web application? (a) Junit (b) Fitnesse (c) ... Technologies & Servlet of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    How constructor can be used for a servlet? (a) Initialization (b) Constructor function (c) Initialization and ... Servlet of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    What is debugging an application which runs on another java virtual machine on another machine? (a) virtual ... Servlet of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which class represents an Internet Protocol address? (a) InetAddress (b) Address (c) IP Address (d) TCP Address ... & Servlet of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which part stores the program arguments and startup parameters? (a) debug configuration (b) run configuration (c) ... Servlet of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
...