2. Best practice is to use whatever is clearest - personally I use public variables unless the JavaBeans API is involved
William Brogden wrote:2. Best practice is to use whatever is clearest - personally I use public variables unless the JavaBeans API is involved
Author of ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- OCPJP Online Training -- Twitter -- How to Ask a Question
g venkata wrote:I have three doubts in perofrmance fix
3. This is regarding JDBC and JSP using Oracle10g,Tomcat and JBOSS.Currently this is the scenario. I am retreiving more than 1000 records in resultset. But actually the user requires 10 records..rarely he requires 1000 records. Am iterating thru a loop in DAO class and getting that particular records in while(resultset,next()) and passing them to JSP (thru request obect)
If the user again requests for 20 records..am again doing the same.
Because of this the query is executing again and again. and the server is becoming very slow.
(The code written long back and also not upto the standards and performance is not considered while developing)
But Now, i want to change it like..
-Tejas
Cherish your life...!!