Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2016
    Posts
    5
    Rep Power
    0

    Default How to optimize the java code?

    Can any one please help, how to optimize the java code. Is there any tools present? Its urgent.

  2. #2
    Join Date
    Dec 2016
    Posts
    5
    Rep Power
    0

    Default Re: How to optimize the java code?

    In my project i want to optimize my code. Please help me.

  3. #3
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,001
    Rep Power
    33

    Default Re: How to optimize the java code?

    i want to optimize my code
    What does "optimize" mean?
    Smaller class file
    Faster start to execution
    Faster execution
    Uses less memory while executing
    Uses less computer resources
    ???
    If you don't understand my response, don't ignore it, ask a question.

  4. #4
    benji2505 is offline Senior Member
    Join Date
    Sep 2014
    Location
    MA, USA
    Posts
    398
    Rep Power
    6

    Default Re: How to optimize the java code?

    Works at all ??

  5. #5
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: How to optimize the java code?

    Usually, optimization implies faster execution. Assuming your code works
    there is an adage for optimization.

    1. First rule - don't optimize.
    2. Second rule - don't optimize (yet)
    3. Third rule - profile before optimizing.

    Usually, when one has written code, it means they have done the research and
    applied the latest algorithms available to solve the problem or adapted those algorithms
    to suit their need. Or they have spent the appropriate time with pencil and paper and
    having discussed this with their peers, developed their own algorithm. Then, I would say
    (based on what I have read) do number 3 above. But a corollary is that the gain in
    improvement is rarely worth the investment required to achieve it.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

Similar Threads

  1. how to tune and optimize POI Code
    By 009 in forum Apache POI
    Replies: 12
    Last Post: 06-11-2014, 05:25 PM
  2. Replies: 1
    Last Post: 06-16-2012, 03:17 PM
  3. Replies: 9
    Last Post: 09-11-2011, 05:27 PM
  4. why is it so slow? need to optimize it?
    By skarosg3 in forum Advanced Java
    Replies: 15
    Last Post: 10-08-2010, 08:54 AM
  5. Optimize my Code please....
    By mindblaster in forum New To Java
    Replies: 5
    Last Post: 02-06-2010, 11:32 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •