in Education by
Does close() implicitly flush() the stream. (a) True (b) False This question was posed to me during an interview. I need to ask this question from AutoCloseable, Closeable and Flushable Interfaces in portion Session Management, JSP & API of Java Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
The correct answer is (a) True For explanation I would say: close() closes the stream but it flushes it first.

Related questions

0 votes
    What is the alternative of using finally to close resource? (a) catch block (b) autocloseable interface to be ... & API of Java Select the correct answer from above options...
asked Feb 16, 2022 in Education by JackTerrance
0 votes
    It is a good practise to not throw which exception in close() method of autocloseable? (a) IOException (b) ... & API of Java Select the correct answer from above options...
asked Feb 16, 2022 in Education by JackTerrance
0 votes
    What does Class.forName( myreflection.Foo ).getInstance() return? (a) An array of Foo objects (b) class object of ... JSP & API of Java Select the correct answer from above options...
asked Feb 16, 2022 in Education by JackTerrance
0 votes
    Does close() implicitly flush() the stream. (a) True (b) False This question was posed to me ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    Which of the following is used for session migration? (a) Persisting the session in database (b) URL rewriting (c) ... & API of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which of the below is not a session tracking method? (a) URL rewriting (b) History (c) Cookies (d) SSL sessions ... JSP & API of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which of the following is stored at client side? (a) URL rewriting (b) Hidden form fields (c) SSL sessions (d) ... , JSP & API of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which of the following leads to high network traffic? (a) URL rewriting (b) Hidden form fields (c) SSL sessions ( ... JSP & API of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which of the following is not true about session? (a) All users connect to the same session (b) All users have ... JSP & API of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    SessionIDs are stored in cookies. (a) True (b) False I got this question in semester exam. Origin of the question ... JSP & API of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    What is the maximum size of cookie? (a) 4 KB (b) 4 MB (c) 4 bytes (d) 40 KB This question was posed ... Management, JSP & API of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    How can we invalidate a session? (a) session.discontinue() (b) session.invalidate() (c) session.disconnect() (d) ... JSP & API of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which method creates unique fields in the HTML which are not shown to the user? (a) User authentication (b) URL ... JSP & API of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which page directive should be used in JSP to generate a PDF page? (a) contentType (b) generatePdf (c) typePDF (d ... JSP & API of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which tag should be used to pass information from JSP to included JSP? (a) Using tag (b) Using tag (c) Using ... , JSP & API of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
...