Languages-Java [3i Infotech Placement]: Sample Questions 133 - 135 of 141
Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.
Question 133
Explanation
- RMI uses special classes called stubs downloaded to the client and used to communicate with the remote object.
- The java. rmi. server. codebase property value represents URL locations from which these stubs can be downloaded.
Question 135
Appeared in Year: 2004
Question MCQ▾
In a JSP page, a statement is declared as follows:
<%! String strTemp =request. GetParameter ( “Name” ); %>
And below that, an _expression appears as:
<% System. Out. Println ( “The Name of person is:” +strTemp); %>
What is the output of the expression, if this JSP page is invoked in browser using URL?
Choices
Choice (4) | |
---|---|
a. | The name of person is: |
b. | The Name of person is: Chetana |
c. | The Name of person is: null |
d. | All of the above |
Answer
b.Explanation
- In this case on the page nothing will be displayed as the System. out. println () will display the output to console.
- So it may be displayed in the file of the application server՚s console output file.