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 -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 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 -14

Advanced Java Interview Questions -14 1 Does Java support multiple inheritance ? This is the trickiest question in Java, if C++ can support direct multiple inheritance than why not Java is the argument Interviewer often give. See Why multiple inheritance is not supported in Java to answer this tricky Java question. 2 What will happen […]

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 […]

Advanced Java Interview Questions -11

Advanced Java Interview Questions -11 1. What mechanisms are used by a Servlet Container to maintain session information? Cookies, URL rewriting, and HTTPS protocol information are used to maintain session information 2. What are the different ways for session tracking? Cookies, URL rewriting, HttpSession, Hidden form fields 3. Difference between GET and POST In GET […]

Advanced Java Interview Questions – 10

Advanced Java Interview Questions – 10 1 What is difference in String on C and Java If you have mentioned C in your resume, then you are likely to face this String interview question. Well C String and Java String are completely different to each other, C String is a null terminated character array while […]

Advanced Java Interview Questions -9

Advanced Java Interview Questions -9 1  Can an object be garbage collected while it is still reachable? A reachable object cannot be garbage collected. Only unreachable objects may be garbage collected.. 2  Is the ternary operator written x : y ? z or x ? y : z ? It is written x ? y […]