Advanced Java Interview Questions
Questions Answers Views Company eMail

A user of a web application sees a jsessionid argument in the URL whenever a resource is accessed. What does this mean? a. The form must have the field jsessionid b. URL rewriting is used as the session method c. Cookies are used for managing sessions

992

1) which method of the RequestDispatcher cannot be called once the output is sent to the client? a. forward b. include c. both a&b 2) which interface should an object implement to get notified of changes to the list of active sessions in a web application? a. HttpSessionListener b. HttpSessionActivationListener c. HttpSessionAttributeLIstener 3) A user can select multiple locations from a list box on an HTML form, which of the following methods can be used to retrieve all the selected location? a. getParameter() b. getParameterValues() c. getParamValues() 4) which of the following methods should be used to send character text to the client? a. ServletResponse.getWriter() b. ServletResponse.getOutputStream() c. ServletResponse.getOut() 5) which implicit object is always available in a JSP page? a. exception b. session c. out 6) which inclusion mechanism doesn't include the source of the page, rather the output of the page. a. include directive b. jsp:include action c. Bothe a& b 7) which attribute of the page controls whether a page participates in session or not? a. session-allowed b. session c. isSession

1 2322

Difference Between java & javax

Sun Microsystems, Wipro,

5 16958




is servlet,struts are threadsafe or not.please telme correct answer

Microsoft,

1 2310

difference between apllet and interface class

Infotech,

1 1589

Thread life cycle?

TCS,

3 2583

what is the difference between System.out.println and out.println in java

CTS,

9 18968

how to create Calculator GUI using Gridbaglayout as like as Window Calculator??????????? (Open calculator Go-->Run-->type calc-->Enter)

TCS,

1 5632




how java is os independent language ?

3 2346

Write a java program to find out the sum of harmonic series : 1 + ½ + 1/3 + ……… up to nth term , for any value of n.

2 11151

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

HP,

3 2871

Does Java pass arguments by value or reference?

HeadStrong,

5 5120

Difference between JRE and JVM?

HeadStrong, Infotech,

3 3915

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 4355

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

HeadStrong,

6 4516


Post New Advanced Java Questions








Un-Answered Questions { Advanced Java }

In RMI, inorder to sent the stub reference to the client, is we have to load the server object first into the memory or can we directly sent reference to the client?

759


what is the use of State Factories?

1096


cud u help me ... i am struggling with this question... to find all the subsets of a given set for ex.... a,,b,c shud give all the subsets.... i gt the program in c bt nt able to get it in java..... help needed ..

678


What is JTS?

929


What is the form of storage space in java?

957






A user of a web application sees a jsessionid argument in the URL whenever a resource is accessed. What does this mean? a. The form must have the field jsessionid b. URL rewriting is used as the session method c. Cookies are used for managing sessions

992


what is handle?

993


what is meant by JRMP?

1026


what is a portable component?

686


AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?

788


What is Remote Server?

884


int x=5,i=1,y=0; while(i<=5) { y=x++ + ++x; i=i+2; } System.out.println(x); System.out.println(y); System.out.println(i); How to solve this? Please explain!

338


how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.

940


difference between  ejb,struts,hibernate,spring and jsp

1101


what is a non-repeatable read?

941