JSP Interview Questions 1 Briefly explain about Java Server Pages technology? Ans: JavaServer Pages (JSP) technology provides a simplified, fast way to create web pages that display dynamically-generated content. The JSP specification, developed through an industry-wide initiative led by Sun Microsystems, defines the interaction between the server and the JSP page, and describes the format and syntax of the page. …
Continue readingCategory: Interview Faqs
Servlet Interview Questions
Servlet Interview Questions 1 what is a Servlet? Ans: A Servlet is a server side java program which processes client requests and generates dynamic web content. 2 Explain the architechture of a Servlet? Ans: The javax.servlet.Servlet interface is the core abstraction which has to be implemented by all servlets either directly or indirectly. Servlet run on a server side JVM …
Continue readingJDBC Interview Questions and Answers
JDBC Interview Questions and Answers 1 what is JDBC? Ans: JDBC is a layer of abstraction that allows users to choose between databases. JDBC allows you to write database applications in Java without having to concern yourself with the underlying details of a particular database. 2 How many types of JDBC Drivers are present and what are they? Ans: There …
Continue readingJava Lang Package Interview Questions
Java Lang Package Interview Questions 1 what is the base class of all classes? Ans: java.lang.Object 2 what do you think is the logic behind having a single base class for all classes? Ans: 1. casting 2. Hierarchial and object oriented structure. 3 why most of the Thread functionality is specified in Object Class? Ans: Basically for intertribal communication. 4 …
Continue readingApplets Interview Questions
Applets Interview Questions 1 what is an Applet? Ans: Applet is a java program which is included in a html page and executes in java enabled client browser. Applets are used for creating dynamic and interactive web applications. 2 Explain the life cycle of an Applet? Ans: The following methods implement the life cycle of an Applet: Init: To initialize …
Continue readingJava Garbage Collection Interview Questions
Java Garbage Collection Interview Questions 1 Explain Garbage collection in Java? Ans: In Java, Garbage Collection is automatic. Garbage Collector Thread runs as a low priority daemon thread freeing memory. 2 When does the Garbage Collection happen? Ans: When there is not enough memory. Or when the daemon GC thread gets a chance to run. 3 When is an Object …
Continue readingAwt Swing Interview Questions
Awt Swing Interview Questions 1 what is the difference between a Choice and a List? Ans: A Choice is displayed in a compact form that requires you to pull it down to see the list of available choices. Only one item may be selected from a Choice. A List may be displayed in such a way that several List items …
Continue readingJava Threads Interview Questions
Java Threads Interview Questions 1 what are the two types of multitasking? Ans:a. Process-based. b. Thread-based. 2 what is a Thread? Ans: A thread is a single sequential flow of control within a program. 3 what are the two ways to create a new thread? Ans: A.Extend the Thread class and override the run () method. B.Implement the Runnable interface …
Continue readingJava Exception Handling Interview Questions
Java Exception Handling Interview Questions 1 which package contains exception handling related classes? Ans: java. Lang 2 what are the two types of Exceptions? Ans: Checked Exceptions and Unchecked Exceptions. 3 what is the base class of all exceptions? Ans: java.lang.Throwable 4 what is the difference between Exception and Error in java? Ans: Exception and Error are the subclasses of …
Continue readingXML Interview Questions
XML Interview Questions XML The Extensible Markup Language is a general-purpose specification for creating custom markup languages. It improves the functionalityof the Web by letting you identify your information in a more accurate,flexible, and adaptable way. XML is actually a meta language, language for describing other language, which lets you design your own markup languages for limitless different types of …
Continue readingAction Script Interview Questions
Action Script Interview Questions ActionScript is a scripting language based on ECMA Script. Actionscript Originally developed by Macromedia, the language is now owned by Adobe which acquired Macromedia in 2005. ActionScript started as a scripting language for Macromedia’s Flash authoring tool, now developed by Adobe Systems as Adobe Flash. Early Flash developers could attach a simple command, called an “action”, …
Continue reading