| java Programming Glossary: generallyHow to check if a String is a numeric type in Java http://stackoverflow.com/questions/1102891/how-to-check-if-a-string-is-a-numeric-type-in-java  java string numeric   share improve this question  This is generally done with a simple user defined function i.e. Roll your own.. 
 Waiting for multiple SwingWorkers http://stackoverflow.com/questions/11366330/waiting-for-multiple-swingworkers  removal shown in comments is technically possible but generally unappealing. Instead consider a JList or JTable . import java.awt.Color.. 
 Hashset vs Treeset http://stackoverflow.com/questions/1463284/hashset-vs-treeset  Both guarantee duplicate free collection of elements It is generally faster to add elements to the HashSet and then convert the collection.. 
 Parsing query strings in Java http://stackoverflow.com/questions/1667278/parsing-query-strings-in-java  say that it is a good idea The code snippets below are generally flawed or broken btw. Breaking them is an interesting exercise.. 
 How to use .jar files in NetBeans? http://stackoverflow.com/questions/1975973/how-to-use-jar-files-in-netbeans  this library in one of my own NetBeans projects Secondly generally speaking what is the distinction between the three files above.. 
 Why JSF calls getters multiple times http://stackoverflow.com/questions/2090033/why-jsf-calls-getters-multiple-times  a getter method is a very cheap operation so you should generally not worry about this at all. However the story changes when.. 
 When to use Comparable and Comparator http://stackoverflow.com/questions/2266827/when-to-use-comparable-and-comparator  the class and anyone would need to sort the class would generally want to do it that way. If however the sorting was an unusual.. 
 Why is it a bad practice to call System.gc? http://stackoverflow.com/questions/2414105/why-is-it-a-bad-practice-to-call-system-gc  it anyway are why people are so forceful in saying that generally you shouldn't call it. I think it's a case of if you need to.. 
 What are the pros and cons of the assorted Java web frameworks? [closed] http://stackoverflow.com/questions/24596/what-are-the-pros-and-cons-of-the-assorted-java-web-frameworks  following Velocity for basic needs raw JSPs Struts etc . I generally prefer component oriented frameworks myself though. In the end.. 
 Is List<Dog> a subclass of List<Animal>? Why aren't Java's generics implicitly polymorphic? http://stackoverflow.com/questions/2745265/is-listdog-a-subclass-of-listanimal-why-arent-javas-generics-implicitly-p  is Java's behavior. My question is why Why is polymorphism generally implicit but when it comes to generics it must be specified.. 
 Switch Statement with Strings in Java http://stackoverflow.com/questions/338206/switch-statement-with-strings-in-java  time. At runtime while the O 1 performance of tableswitch generally appears better than the O log n performance of lookupswitch.. 
 Difference between applicationContext.xml and spring-servlet.xml in Spring http://stackoverflow.com/questions/3652090/difference-between-applicationcontext-xml-and-spring-servlet-xml-in-spring  the applicationContext.xml context is unnecessary. It is generally used to contain beans that are shared between all servlets in.. 
 Best practices for exception management in Java or C# http://stackoverflow.com/questions/409563/best-practices-for-exception-management-in-java-or-c-sharp  between threads but even for those cases you should generally rethrow the exceptions. You should definitely not have a lot.. 
 when to use StringBuilder in java http://stackoverflow.com/questions/4645020/when-to-use-stringbuilder-in-java  to use StringBuilder in java  It is supposed to be generally preferable to use a StringBuilder for String concatenation in.. 
 How to monitor the computer's cpu, memory, and disk usage in Java? http://stackoverflow.com/questions/47177/how-to-monitor-the-computers-cpu-memory-and-disk-usage-in-java  under GPL it has been changed to Apache 2.0 which can generally be used for closed source commercial products.  java memory.. 
 How can an app use files inside the JAR for read and write? http://stackoverflow.com/questions/5052311/how-can-an-app-use-files-inside-the-jar-for-read-and-write  it does not exist load the default file. Note that it is generally better to describe the goal rather than the strategy. 'Store.. 
 How cancel the execution of a SwingWorker? http://stackoverflow.com/questions/6113944/how-cancel-the-execution-of-a-swingworker  called from doInBackground but rather from another thread generally the EDT e.g. when user clicks a Cancel button in a progress.. 
 java.net.SocketException: Connection reset http://stackoverflow.com/questions/62929/java-net-socketexception-connection-reset  in a way which I will not document here. It is rare and generally incorrect for application software to do this but it is not.. 
 JMenuItem ImageIcon too big http://stackoverflow.com/questions/6916693/jmenuitem-imageicon-too-big  solution is sometimes the best Also getScaledInstance is generally a bad idea. This explains why and gives better options for resizing.. 
 What's the best way to distribute Java applications? http://stackoverflow.com/questions/80105/whats-the-best-way-to-distribute-java-applications  executable or wrap it up in an installer. Expensive and it generally ties you to a slightly older version of java and there is some.. 
 How many hardware details can a Java Applet Discover? http://stackoverflow.com/questions/1011063/how-many-hardware-details-can-a-java-applet-discover  software against different systems and find bottlenecks. Generally what I'm looking for is Number of cores and or processors 32.. 
 Why is Java Vector class considered obsolete or deprecated? http://stackoverflow.com/questions/1386275/why-is-java-vector-class-considered-obsolete-or-deprecated  operation. That's almost never what you want to do. Generally you want to synchronize a whole sequence of operations. Synchronizing.. 
 HashMap vs ArrayList performance am I correct http://stackoverflow.com/questions/1518103/hashmap-vs-arraylist-performance-am-i-correct  arraylist hashmap   share improve this question   Generally yes you are correct. There's also a combined data structure.. 
 java dynamic array sizes? http://stackoverflow.com/questions/1647260/java-dynamic-array-sizes  xClass myclass.add new xClass myclass.add new xClass Generally an ArrayList is a preferable solution to an array anyway for.. 
 Communication between two separate Java desktop applications http://stackoverflow.com/questions/1680898/communication-between-two-separate-java-desktop-applications  want to just pass arguments over the command line etc. Generally speaking what strategies techniques should I be looking at in.. 
 Why can't I use a type argument in a type parameter with multiple bounds? http://stackoverflow.com/questions/197190/why-cant-i-use-a-type-argument-in-a-type-parameter-with-multiple-bounds  through Angelika Langer's FAQ and can't find an answer. Generally when some generics limitation seems arbitrary it's because you've.. 
 bug with varargs and overloading? http://stackoverflow.com/questions/2521293/bug-with-varargs-and-overloading  void doit int... is  System.out.println ints  the docs say Generally speaking you should not overload a varargs method or it will.. 
 What is null in Java? http://stackoverflow.com/questions/2707322/what-is-null-in-java  mind that they aren't always the best practice examples. Generally speaking null are used as a special value to signify Uninitialized.. 
 TreeMap sort by value http://stackoverflow.com/questions/2864840/treemap-sort-by-value  is no longer a view of the original map like entrySet is. Generally speaking the need to sort a map's entries by its values is atypical... 
 When to catch java.lang.Error? http://stackoverflow.com/questions/352780/when-to-catch-java-lang-error   java error handling   share improve this question   Generally never. However sometimes you need to catch specific Errors... 
 How to deal with “java.lang.OutOfMemoryError: Java heap space” error (64MB heap size) http://stackoverflow.com/questions/37335/how-to-deal-with-java-lang-outofmemoryerror-java-heap-space-error-64mb-heap  improving your algorithms or memory allocation patterns. Generally this will only usually be the case for algorithms operating.. 
 sizeof java object http://stackoverflow.com/questions/4115239/sizeof-java-object  uses 8 byte but these will depend on the JVM you use. Generally if you want to know about your heap usage use a memory heap.. 
 Should I write equals() methods in JPA entities? http://stackoverflow.com/questions/4388360/should-i-write-equals-methods-in-jpa-entities  with this option. As seanizer noted you should avoid it. Generally always unless you are really aware of what you are doing and.. 
 Default constructors and inheritance in Java http://stackoverflow.com/questions/525548/default-constructors-and-inheritance-in-java  about default constructors and inheritance in Java. Generally if you write a class and do not include any constructor Java.. 
 Downloading a file from spring controllers http://stackoverflow.com/questions/5673260/downloading-a-file-from-spring-controllers  stream  Where IOUtils is org.apache.commons.io.IOUtils . Generally speaking when you have response.getOutputStream you can write.. 
 How do I read the manifest file for a webapp running in apache tomcat? http://stackoverflow.com/questions/615493/how-do-i-read-the-manifest-file-for-a-webapp-running-in-apache-tomcat   java tomcat jar manifest   share improve this question   Generally this will not work as david a. said. You can work around it.. 
 What's the purpose of META-INF? http://stackoverflow.com/questions/70216/whats-the-purpose-of-meta-inf  I put there  java meta inf   share improve this question   Generally speaking you should not put anything into META INF yourself... 
 What does the “+=” operator do in Java? http://stackoverflow.com/questions/7456462/what-does-the-operator-do-in-java  improve this question   x i IS NOT identical to x x i . Generally it is a shorthand but if x and i are of different types their.. 
 Rotate a Java Graphics2D Rectangle? http://stackoverflow.com/questions/7517688/rotate-a-java-graphics2d-rectangle  to ensure that children appear on top of component itself. Generally speaking the component and its children should not paint in.. 
 How do I use SwingWorker in Java? http://stackoverflow.com/questions/782265/how-do-i-use-swingworker-in-java  java animation swingworker   share improve this question   Generally SwingWorker is used to perform long running tasks in Swing... 
 |