java Programming Glossary: whereas
Difference between wait() and sleep() http://stackoverflow.com/questions/1036754/difference-between-wait-and-sleep calling notify on the monitor which is being waited on whereas a sleep cannot. Also a wait and notify must happen in a block.. must happen in a block synchronized on the monitor object whereas sleep does not Object mon ... synchronized mon mon.wait At this.. wait on Object itself i.e. you wait on an object's monitor whereas you call sleep on Thread . Yet another point is that you can..
How do I remove objects from an array in Java? http://stackoverflow.com/questions/112503/how-do-i-remove-objects-from-an-array-in-java of Collections.singleton singleton is limited to one entry whereas the asList approach allows you to add other strings to filter..
Java - HashMap vs Map objects http://stackoverflow.com/questions/1348199/java-hashmap-vs-map-objects In the first case the interface is HashMap String Object whereas in the second it's Map String Object . The underlying object..
When comparing two Integers in Java does auto-unboxing occur? http://stackoverflow.com/questions/1514910/when-comparing-two-integers-in-java-does-auto-unboxing-occur Integer so it will have to do execution time type checking whereas the first uses the fact that we already know that both objects..
Xml configuration versus Annotation based configuration http://stackoverflow.com/questions/182393/xml-configuration-versus-annotation-based-configuration you wish to inject SubtypeX you have to change your code whereas you had an interface contract before anyways so with XML you..
calling non-static method in static method in Java http://stackoverflow.com/questions/2042813/calling-non-static-method-in-static-method-in-java method is one that is called ON an instance of some class whereas a static method belongs to the class itself. share improve..
String, StringBuffer, and StringBuilder http://stackoverflow.com/questions/2971315/string-stringbuffer-and-stringbuilder you try to alter their values another object gets created whereas StringBuffer and StringBuilder are mutable so they can change..
When to use LinkedList<> over ArrayList<>? http://stackoverflow.com/questions/322715/when-to-use-linkedlist-over-arraylist seeking in a LinkedList means following the links in O n whereas in an ArrayList the desired position can be computed mathematically..
Differences between HashMap and Hashtable? http://stackoverflow.com/questions/40471/differences-between-hashmap-and-hashtable HashMap and Hashtable in Java Hashtable is synchronized whereas HashMap is not. This makes HashMap better for non threaded applications..
Moving decimal places over in a double http://stackoverflow.com/questions/4937402/moving-decimal-places-over-in-a-double error for the first expression depends on the values of x whereas the 0.01 in the second has a fixed round error. for int i 0..
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 the strategy. 'Store changed file in Jar' is a strategy whereas 'Save preferences between runs' might be the goal. share improve..
Connection pooling options with JDBC: DBCP vs C3P0 [closed] http://stackoverflow.com/questions/520585/connection-pooling-options-with-jdbc-dbcp-vs-c3p0 DB disconnects and transparent reconnects on resume whereas DBCP never recovered connections if the link was taken out from..
What is the difference between an int and an Integer in Java and C#? http://stackoverflow.com/questions/564/what-is-the-difference-between-an-int-and-an-integer-in-java-and-c this question In Java the 'int' type is a primitive whereas the 'Integer' type is an object. In C# the 'int' type is the..
Trust Store vs Key Store - creating with keytool http://stackoverflow.com/questions/6340918/trust-store-vs-key-store-creating-with-keytool is meant to contain your private keys and certificates whereas the javax.net.ssl.trustStore is meant to contain the CA certificates..
Why is StringTokenizer deprecated? http://stackoverflow.com/questions/6983856/why-is-stringtokenizer-deprecated difference is that String.split uses a regular expression whereas StringTokenizer just uses verbatim split characters. So if I..
What is the Java ?: operator called and what does it do? http://stackoverflow.com/questions/798545/what-is-the-java-operator-called-and-what-does-it-do But theoretically there could be another ternary operator whereas there can only be one conditional operator . Edit The official..
When to use @QueryParam vs @PathParam http://stackoverflow.com/questions/11552248/when-to-use-queryparam-vs-pathparam could be used to drill down to entity class hierarchy. Whereas QueryParam could be reserved for specifying attributes to locate..
How to represent null value as empty element with JAXB? http://stackoverflow.com/questions/11743306/how-to-represent-null-value-as-empty-element-with-jaxb xsi http www.w3.org 2001 XMLSchema instance xsi nil true Whereas in the result I want the out put as XYZDate i.e. do not want..
Initialization of List in a JSF Managed bean http://stackoverflow.com/questions/15773350/initialization-of-list-in-a-jsf-managed-bean depend on any injected resources via @ManagedProperty . Whereas in a @PostConstruct method you'll have access to all the resources..
What are multi-level wild cards? Confusion in syntax http://stackoverflow.com/questions/18194956/what-are-multi-level-wild-cards-confusion-in-syntax is a concrete type. It's type is known at compile time. Whereas List extends Number is not a concrete type because extends Number..
Comparing strings with == which are declared final in Java http://stackoverflow.com/questions/19418427/comparing-strings-with-which-are-declared-final-in-java StringBuilder to perform the concatenation operation. Whereas your second code example final version looks like this Code..
Collections.emptyList() returns a List<Object>? http://stackoverflow.com/questions/306713/collections-emptylist-returns-a-listobject Person.java 9 warning unchecked unchecked conversion Whereas the following change makes the error go away public Person String..
Synchronization vs Lock http://stackoverflow.com/questions/4201713/synchronization-vs-lock the lock You have to explicitly do try finally everywhere. Whereas with synchronized it's super clear and impossible to get wrong..
Lists with wildcards cause Generic voodoo error http://stackoverflow.com/questions/5407995/lists-with-wildcards-cause-generic-voodoo-error be applied to addAll java.util.List capture extends Foo Whereas the compiler just says cannot find symbol symbol method addAll..
Hibernate, iBatis, Java EE or other Java ORM tool http://stackoverflow.com/questions/716532/hibernate-ibatis-java-ee-or-other-java-orm-tool models SQL performance tuning of queries and so forth. Whereas Ibatis will simply having you apply the SQL you know or are..
Comparing two identical strings with == returns false [duplicate] http://stackoverflow.com/questions/7375427/comparing-two-identical-strings-with-returns-false y new Integer 5 if x.equals y System.out.println Equal Whereas this would not give the expected result the if condition would..
Best way for allowing subdomain session cookies using Tomcat http://stackoverflow.com/questions/82645/best-way-for-allowing-subdomain-session-cookies-using-tomcat for www.example.com will only work on www.example.com . Whereas for example.com it will be created for .example.com desired..
JSP encoding while inserting non-English text in MySQL database http://stackoverflow.com/questions/8311463/jsp-encoding-while-inserting-non-english-text-in-mysql-database me junk character like this in database ª® « ª ªª « ª· « ª Whereas the actual value is મà પષ So the actual problem lies in or..
Array's length property http://stackoverflow.com/questions/9297899/arrays-length-property property String str new String 10 int size str.length Whereas the size method of ArrayList is defined inside the ArrayList..
|