Memory Leak in Java? Does 'static' cause it? on Nov 17, 2009 in Java Does 'static' cause Memory Leak in Java?What's memory leak? In simple terms, it's unused but referenced (somehow because the programmer probably unintentionally forgot to remove the references once the use of the object was over) part of the memory.
Marker Interface in Java: what, why, uses, etc. on Oct 29, 2009 in Java What are Marker Interfaces in Java?An empty interface having no methods or fields is called a marker interface or a tag interface. There are few Java supplied marker interfaces like Cloneable, Serializable, etc. One can create their own marker interf...
Connecting to an HTTP Web Service from VBA via Proxy on Oct 13, 2009 in Miscellaneous Connecting to an HTTP Web Service from VBA Excel via a Proxy ServerThough MSDN suggests using stubs generated from the WSDL by MS Soap Toolkit for connecting to an HTTP Web Service from within VBA Excel, but it might not work as you would like it to,...
Why wait(),notify() and notifyAll() in the Object class? on Oct 11, 2009 in Java Multithreading Why wait(), notify() and notifyAll() methods have been defined in the Object class?Java concurrency model uses locks to implement mutually exclusive access to objects in a multi-threaded environment and locks are associated with every object in Java...
per-thread Singleton and per-thread Logging in Java on Aug 3, 2009 in Java Multithreading Usage of ThreadLocal: per-thread Singleton and per-thread LoggingShould you require a refresh of what ThreadLocals in Java are and how they work, refer to this article first. You can then proceed with the current article for understanding two of the...
Choosing the Most Specific Method - Tricky Overloading on Jun 18, 2009 in Java Choosing the Most Specific Method - Tricky Method OverloadingLet's start with looking at a code-segment and try to think of the output/error, it would produce when compiled/executed and subsequently we'll discuss the behavior of code.public class Nul...
Initializer Blocks & their alternatives in Java on Jun 11, 2009 in Java Initializer Blocks in Java and their possible alternativesInitializer Blocks - what are they, why & how are they used?These blocks are similar to the static initialization blocks with the only difference being the absence of the 'static' keyword.
Static Initialization Blocks & their alternatives on Jun 6, 2009 in Java Static Initialization Blocks and their alternatives in JavaWhy do we need Static Initialization Blocks?The easiest way of initializing fields (static or instance) in Java at the time of their declaration is simply by providing a compile time constant...
Choosing a suitable access control modifier in Java on May 30, 2009 in Java How to choose a suitable access control specifier of a method or a field?Access Control Modifiers available for classes and members in JavaTop-level classes in Java can have only two access control modifiers - public and default (package-private) whe...
Finding caller of an instance or static method in Java on May 28, 2009 in Java Finding Caller object, method/class of an instance method in JavaYou might think if we would ever need it? Well... you may never, but no harm in exploring whether we have any/some ways of finding this in Java or not. This question was asked by one of...
© BlogTopsites.com 2004-2009. Contact Us.