1. What is JDBC? How do you connect to a database? JDBC stands for Java Database Connectivity. It is an API which provides easy connection to a wide range of databases. To connect to a database we need to load the appropriate driver and then
What is a singleton pattern? How do you code it in Java? A singleton is a class that can be instantiated only one time in a JVM per class loader. Repeated calls always return the same instance. Ensures that a class has only one instance, and provide
1.What are the advantages of Object Oriented Programming Languages(OOPL)?It directly represent the real life objects like Car, Account, Customer etc.The features of OOPL like polymorphism, inheritance, encapsulation(Tip: remember “Pie”) make it
1.The role of an architect?The architect is responsible for creating the blueprint for the system and must consider not only the functional requirement of the system but also the nonfunctional requirement as well. Is the system capable, scalable,
JMX is a technology that lets you implement management interfaces for java applications. It offers programmers the ability to add monitoring and management to their Java applications. With JMX, an application, device or service on one
比較日期的大小 yyyy-MM-ddfunction checkDateDiff(fromDate, toDate) { var dtArrFrom = fromDate.split('-'); var dtArrTo = toDate.split('-');var dtFrom = new Date(eval(dtArrFrom[0]),eval(dtArrFrom[1])-1,eval(dtArrFrom[2]), 0, 0, 0, 0) var dtTo = new