You are not logged in.

#1 2015-11-04 06:59:38

Muhammad
User RankUser RankUser RankUser RankUser RankUser Rank
بِسمِ اللَّهِ الرَّحمٰنِ الرَّحيمِ
From: Sahiwal Division
Registered: 2012-03-22
Posts: 22,197
Website

What will be the output of the following expression?

Java Quizzes SCWCD (Sun Certified Web Component Developer)

Question:
What will be the output of the following expression?
<%= System.out.println("Hello.."); %>

Option A):
System.out.println("Hello..")
Option B):
Hello..
Option C):
java.io.PrintStream@1ccf82Hello
Option D):
Compiler Error

Correct Answer is Option D):
Compiler Error

Explanation:
We cannot use 'void' in JSP expression. All JSP expression should return a valid type except void.


Online Web Tutorials And Interview Questions With Answers Forum:
https://globalguideline.com/forum/

2015-11-04 06:59:38

Advertisement
Ads By Google

Re: What will be the output of the following expression?



\n

Board footer