Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Java Gotchas?

gotchas Java
0
Posted

Java Gotchas?

0

Unfortunately, I’ve found that naive Java coding often yields really slow code. Here’s some pointers: Use StringBuffer’s instead of String’s for strings that you will be modifying a lot. This sometimes yields suprisingly huge speedups. This is a pain, because the syntax is different, so you can’t easily switch between the two: String retval = “

“; … retval += “

“; versus: StringBuffer retval = new StringBuffer(“

“); … retval.

Related Questions

  • I am looking for JAVA profiling tools for HPs jdk. Are there any?
  • Are SSJS (Server Side Java Scripts) supported with iws 6.0?
  • Java Gotchas?
  • What is your question?

    *Sadly, we had to bring back ads too. Hopefully more targeted.