sonal


{ City } bangalore
< Country > india
* Profession *
User No # 75800
Total Questions Posted # 8
Total Answers Posted # 2

Total Answers Posted for My Questions # 37
Total Views for My Questions # 66787

Users Marked my Answers as Correct # 17
Users Marked my Answers as Wrong # 2
Questions / { sonal }
Questions Answers Category Views Company eMail

Different between Struts and Spring? or Why use Spring, if you are already using Struts?

HP,

3 Advanced Java 4785

Does Java pass arguments by value or reference?

HeadStrong,

5 Advanced Java 7745

Difference between JRE and JVM?

HeadStrong, Infotech,

3 Advanced Java 6100

Will it be called overriding if I do not change the parameters or return type, instead throw a different exception in the method signature.

HeadStrong,

4 Advanced Java 6582

How will the struts know which action class to call when you submit a form?

HeadStrong,

6 Advanced Java 7463

If I define a method in JSP scriplet <%..%>, where will it go after translation into a servlet?

HeadStrong,

8 Advanced Java 18787

Why use a datasource when you can directly specify a connection details? (in a J2EE application)

1 Advanced Java 3439

Can we have more than one action servlet?

HP,

7 Advanced Java 11886




Answers / { sonal }

Question { TCS, 9097 }

What will happen if we write code like:
try{}catch(exception e)catch(IOException i)


Answer

I knew the answer but tried it to get the exact compile
time error. It reads "exception java.io.IOException is
already been caught".

Is This Answer Correct ?    2 Yes 2 No

Question { HeadStrong, 18787 }

If I define a method in JSP scriplet <%..%>, where will it
go after translation into a servlet?


Answer

@Karthikeyan ...In Java, you cannot have a method inside
another method (service). You may try the same, in JSP
itself you will get compile time error when defining a
method in scriplets.

Is This Answer Correct ?    15 Yes 0 No