This week's book giveaway is in the Spring forum.
We're giving away four copies of Spring Boot in Practice and have Somnath Musib on-line!
See this thread for details.
Win a copy of Spring Boot in Practice this week in the Spring forum!

Gokul Nanthakumar

Ranch Hand
+ Follow
since May 11, 2010
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Gokul Nanthakumar

Try, you run save share java program online in this. it gives nice list of your recently executed list as well.
9 years ago
Try - you can run java program here, even you can save and share code.
Try - you can run java program here, even you can save and share code.
9 years ago
As a java developer I often wanted to execute a small piece of code and test it quickly without opening an IDE. Some times the same bit of code we want to execute often and use the result somewhere. May be even we want to share that bit of joy with others. One of the solutions is helps compile and execute java programs online. It has simple interface. Share your thoughts about here in comment.

Try some default shares

Hello World
Hello World with Method
Example with import and Input Arguments

some of the features you may like is

1. auto complete import - just type the class name it will come with whole bunch of suggestions for you, just select the one you want and click Tick button.

2. Recents - you can see all the recently executed codes in the browser here. even you can ask to remember this between same browsers different session.

3. Share - makes sharing easier. Not all your code shared by default, so you can always control what to share and what not to.
9 years ago
Hi All,

I have been silent observer of this forum for couple of years, Today I have received mail from oracle that I have passed the SCEA 5 exam. I submitted my part - II assignment on 20th of Nov and gave Part - III on 23 Nov. The informations posted in this forum has been a real help in clearing the exam.

Thanks all.
11 years ago
Welcome Sergey, all the best for your book and our readings.....

Bupjae Lee wrote:

1) Check only @Id field
Drawback: Before persisting, @Id field is null; in this case, there are no way to check equality

Once you get the ID (after persisting in your case) only your object becomes complete, if id is the unique identifier for your entity, this is the best candidate.

What you are going to compare with incomplete object? even I dont think you will place it in HashMap without id.
here null means, reference not pointing to any object in the heap. so for any type of object reference we can say that it is not pointing to any object. hope helps.
12 years ago
You need to log through code like, log.error, etc in your code....
My view is as long the number is not associated with some thing it does not have any meaning, 15 can represent a day in a month or money or age, etc etc. it can be a symbol as well. but words are self explanatory (when they are meaningful).
As per your requirement you need to do something when an application starts, so it will solve your problem, after that even if container destroys the servlet, I dont think there is a problem.
Main Method is the communication medium between jvm and user, so it should receive the input from user in user understandable format ie String...
write a standalone program which will check the status of the external system in certain time interval and notify you
12 years ago