Java Interview Questions -45

Java Interview Questions -45 1. What is the difference between EJB and Java beans? EJB is a specification for J2EE server, not a product; Java beans may be a graphical component in IDE. 2.What is JDBC abstraction and DAO module? Using this module we can keep up the database code clean and simple, and prevent […]

Java Interview Questions -43

Java Interview Questions -43 1.Are Struts’s action classes Thread-safe? Yes. Action classes are based on “one-instance and many-threads”. This is to conserve resources and to provide the best possible throughput. 2.What are the various Struts Tag libraries? There are various struts tags. But the most-repeated tags are: struts-bean.tld struts-html.tld struts-logic.tld struts-nested.tld 3.What is ActionMapping in […]

Java Interview Questions -42

Java Interview Questions -42 1.What is an Aspect? An aspect is the cross-cutting functionality that you are implementing. It is the aspect of your application you are modularizing. An example of an aspect is logging. Logging is something that is required throughout an application. However, because applications tend to be broken down into layers based […]

Java Interview Questions – 28

Java Interview Questions – 28 1.What is Struts Validator Framework? The “Struts Framework” provides the functionality to validate the form data.It can be used to validate the data in the user’s browser as well as on the server side. Struts Framework checks the JavaScript code and it can be used to validate the form data […]

Java Interview Questions -19

Java Interview Questions -19 1. What value does read() return when it has reached the end of a file? The read() method returns -1 when it has reached the end of a file. 2. What is an object’s lock and which object’s have locks? An object’s lock is a mechanism that is used by multiple […]

Advanced Java FAQ

Advanced Java FAQ – 17 1.What is “application client” ? A first-tier J2EE client component that executes in its own Java virtual machine. Application clients have access to some J2EE platform APIs. 2.What is “application client container” ? A container that supports application client components. 3.What is “application client module” ? A software unit that […]

Advanced Java Interview Questions -16

Advanced Java Interview Questions -16 1.What is enterprise information system ? The applications that constitute an enterprise’s existing system for handling companywide information. These applications provide an information infrastructure for an enterprise. An enterprise information system offers a well-defined set of services to its clients. These services are exposed to clients as local or remote […]

Advanced Java Interview Questions and Answers -15

Advanced Java Interview Questions and Answers -15 1 is there ever a case when a singleton may return a differnt instance yes when the singleton is loaded with a different class loader. 2 write a class that implements the following if the object has been seen before, returns the same integer if the object has […]

Advanced Java Interview Questions -13

Advanced Java Interview Questions -13 1.What are different types of inner classes? Nested top-level classes, Member classes, Local classes, Anonymous classes Nested top-level classes- If you declare a class within a class and specify the static modifier, the compiler treats the class just like any other top-level class. Any class outside the declaring class accesses […]

Advanced Java Interview Questions -12

Advanced Java Interview Questions -12 1.What’s the use of JAVAP tool ? javap disassembles compiled Java files and spits out representation of the Java program. This is a useful option when the original source code is not available. 2.what’s the main difference between ArrayList / HashMap and Vector / Hashtable? Vector / HashTable are synchronized […]