03 2014 档案
摘要:1. Why String is immutable in Java? (Security, String pool implementation, see more here)2. Can abstract class have constructor in Java? (Yes, detailed answer ishere)3. Which two methods is overridden...
阅读全文
摘要:The following example demonstrates how to make connection to a LDAP server using JNDI (Java Naming and Directory Interface) APIs in Java. The JNDI’s interfaces, classes and exceptions are available in...
阅读全文
摘要:看下面的例子: var i, list = []; for (i = 0; i < 2; i += 1) { list.push(function(){ console.log(i); }); } list.forEach(function(func){ func(); });我们将得到两次 "2" ,而不是预期的 "1" 和 "2" ,这是因为在 list 中的两个函数访问的变量 i 都是其上一...
阅读全文
摘要:import java.text.NumberFormat;import java.util.Locale;/** * How to format Number to different currency in Java. Following Java program * will show you, how you can display double value in different cu...
阅读全文
摘要:It's very simple to use the xml-rpc.net library, here is what you need to do:[XmlRpcUrl("http://url_to_your_server/api.php")]public interface ISumAndDiff : IXmlRpcProxy{ [XmlRpcMethod("your.remote....
阅读全文