Baiju Mehta

Greenhorn
+ Follow
since Jan 06, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Baiju Mehta

Thanks Campbell and Henry for your quick replies.

Campbell, yes, I need to access aList outside this class and it is declared as a public field.

Henry, Just to make sure that I understand what you are saying.. Lets take this example.

I have an Order class:

Now I have a Product class:


Now I have my Test class that looks like this:


Now, since the old products are unreacheable, they should be available for GC. Is this correct?


Another example:

Everything is similar as above, except that now my Test class is a Servlet. Once I add products to order object, I store order into a session. After setting order in a session I do aList = null;

What will happen in this case? The aList object will be available for GC, but the elements of aList are still referenced (stored in order object which is in a active session). So the products stored in aList will NOT be available for GC. Is my understanding correct?
11 years ago
My bad, sorry about that. aList is a Global variable.

Incase if aList was a local variable, my understanding is that once the method returns, aList is out of scope and hence available for GC. Is that correct?
11 years ago
I have a class called Product:



In my Test class, I have an ArrayList that stores a list of Product.



At some point after I am done using the List, I want to set reference for these objects to "null" so that it is available for garbage collection. How would I do that?

Just calling aList.clear() and setting aList = null, will this mean all the prods stored in aList will be de-referenced and available for GC or do I need to loop over all the products and set them to null explicitly?

Thanks.
11 years ago
Hi Mikalia,

Can you send me the instructions to get the PDF file.

Thanks.
Yes, the sun's kit has all the information about getting a logo.
Hi Romy,

In JSP, session tracking is true by default (<%@ page session=�true� %> . So when you load this JSP page, request.getSession(false) will return an existing session. Now, since the count attribute is not set in the session scope, getAttribute(�count�) will return null which means else clause is executed.

Hope this helps.
You can call one of the customer service representatives from Sun or Prometric and probably they will be able to help you. Since you don't have any ID, they will ask you certain questions like your address and other personal information that you gave during your SCJP exam.

Hope this helps.
Thanks Nicolas. I appreciate your help.
Sorry for posting this here.

I cleared the SCWCD exam last Saturday. I have also cleared the SCJP exam couple of years ago. The problem is, I gave these exam under different candidate IDs. Now when Sun MicroSystems is issuing a SCWCD certificate, they will check whether I have cleared the SCJP exam (since it is the pre-requisite), but they won't find any records since both these exams are given under different Candidate IDs. I have emailed them but still haven't got any reply.

Anyone of you in a similar situation.

Please advise.

Thanks.
Sorry for posting this here.

I cleared the SCWCD exam last Saturday. I have also cleared the SCJP exam couple of years ago. The problem is, I gave the exam under different candidate IDs. Now when Sun MicroSystems is issuing a SCWCD certificate, they will check whether I have cleared the SCJP exam (since it is the pre-requisite), but they won't find any records since both these exams are given under different Candidate IDs. I have emailed them but still haven't got any reply.

Anyone of you in a similar situation.

Please advise.

Thanks.
To evaluate EL, make sure you are pointing to version 2.4 in your web.xml file.

<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">

Hope this helps.
I need some help solving these questions? I don't have the answers so was wondering If someone knows the answer.

1) Which of the following directives are applicable only to tag files?
(choose 3 correct answers)

a) attribute
b) variable
c) page
d) include
e) import

I know attribute and variable directives are for tag files, which is the third one and why?


2) Select the correct sequence of actions that a servlet container performs before servicing any request.

a) Instantiate listeners defined in the deployment descriptor.
b) Initialize filters defined in the deployment descriptor.
c) Initialize servlets that are set to load on startup.
d) Call the contextInitialized method on the listeners implementing ServletContextListener interface.

Thanks.
Hi Jerry,

If you could post your email address here, I can forward you my ListenTest code and you can try executing that on your computer. My code is executing correctly.

Thanks.
Hi
List price is Rs.550 and plus usually you get like 20% discount on that.

Thanks.
Hasan,

Thanks for uploading the files to filesanywhere.com. We can download it now.

Thanks a lot!!!