Praveena Jayanthi

Greenhorn
+ Follow
since Dec 30, 2005
Merit badge: grant badges
For More
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 Praveena Jayanthi

Ravi,

How did you solve your MissingAccessRights problem while enabling security on WPS and using sunone LDAP?

-Praveena
17 years ago
The stateless session beans are pooled on the server startup( reused after the EJB method calls end).

The stateful session beans are created on client demand and are destroyed after use.
I like the difference presented in HFEJB..

Entity Bean "IS" something.
Session Bean "DOES" something.

Think of ENtity Bean as a NOUN
and Session Bean as a VERB.
Q)How to calculate the maximum amount of memory that can be allocated to a program?

java -Xms32m -Xmx128m MyProgram

where 32m is minimum and 128m is maximum

Q)Different between Array and ArrayList

Ans. The ArrayList is a resizeable arrays. In arrays you cannot change the length of arrays once declared.

Q)How to avoid memory leaks

Memory leaks occur due to incomplete deallocation of memory. It could be avoided by deallocating the object references as soon as possible in a program.
18 years ago
George,

I tried to implement a sample implementation with a simple DataStructure "NodeLink" to indicate "From" and "To" vertices of a link.

Following are the steps to approach this problem
1)Make an appropriate data structure to represent the graph, its vertices and node links.
2)Construct partial graphs for each entry in the nodelinks i.e all the vertices approachable from a given vertex.
3)Iterate through the partial graphs constructed to see if any node is visited more than once in a subgraph.

In the program below, I used a hastable to keep track of nodes and the number of times visited count. I would initialize the hashtable with "0 visit counts" for each partial graph.






I hope this helps!

-Praveena
18 years ago
You could devote time regularly to study and do all the exercies in HFJ. Also, keep going through "THinking in JAVA" regularly.

Programming is something which learn quickly by doing rather than studying. Keep writing code snippets to test your concepts.

You could give SCJP in about 4-5 months if you study and program in JAVA regularly.
18 years ago
I am sorry for not completing my reply and it was submitted.

You could be having problems with PATH and CLASSPATH environment variables. The probable reason could be that you have appended the new path to java 1.5 but did not delete the prior path entry. So it always finds 1.4 first.
18 years ago
You can use "java -version" at the command prompt to give you the version of java you are using.
18 years ago
Thanks Eric! It is verey interesting to see how fast you could get a response for your post at this place
18 years ago
This is my first post in Java Ranch. I have used Head First Servlets and JSP. The book helped me a lot to understand the abstruse concepts. I like their style and would owe my success to them.

I started my preparation for SCBCD exam and guess which book I am using..you are right..how would I go for other books when I have my favourite Head First Series out there...

I am determined to get over 90% in SCBCD and I could say this because I found ery good teachers(Kathy, Bert Bates and Basham)...God bless these writers for making so many people like me knowledgeable in the JAVA area.

Kudos to the writers for bringing out spectacular books!

SCJP
SCWCD
SCBCD(Preparing)
18 years ago