I have tried this CyclicBarrier example and looks like Second Thread is not working completing after barrier.await() call ?
Is there something else happening, because I can see that JVM is still running but the last sysout statement in run() of the SeriveTwo class is not displayed in the console ?
One of the interviewer asked me this question about Generics that Why they are made compile time validations ?
Any thought on this ? I have discussed with my friend that possible reason can be "It is runtime(which will be then part of JRE validations) then legacy code has to be changed".
I am doing Java Standalone application first time .
I am planning to develop something which will be useful for stores or pharmacies to keep track of the daily records for goods and daily profit/loss.
Could you guys please suggest what will be the best GUI for standalone application. Initially i have used AWT but that too long back .
Are you sure that you will let user upload the file based on the Pages ? Or you have some some size limit for uploaded file ? If that is Size which matters then you look for javascript code , what Ulf suggested is good .