Interview Questions

Advanced Java Interview Questions

Advanced Java Interview Questions Servlets 1.Define Java Servlet? Ans: A Java Servlet is a simple Java Class, which is dynamically loaded onto Web Server and therefore, enhances the functionality of the Web Server. A Java Servlet is secure and portable as it runs on the Web Server and cannot operate outside its domain. Define Servlet Container? Ans: Servlet Container, sometimes also known as Servlet Engine, is an integrated set of objects that provide runtime environment for java Servlet componenets. In other words, it is [...]

Read more...

JSP Interview Questions and Answers

                                                               JSP Interview Questions 1.What is JSP? JSP is a tag based JEE web technologies to develop web application for providing dynamic response to end user. Compare to Servlet, JSP is used to develop web applications within the less time. JSP is not replacement of Servlet technology. It is one different way [...]

Read more...

Servlet Interview Questions and Answers

                                                           Servlet Interview Questions 1.What is use of JEE? A) JEE stands for Java Enterprise Edition, after adding servlet into java this flavor came into the picture, the main intention of this flavor is to develop following applications like a. Web applications b. Distributed applications c. Enterprise applications. 2.What are the types of web applications? A) Mainly web [...]

Read more...

JDBC Interview Questions and Answers

JDBC Interview Questions. 1.What is web application? An application which is running in the web and provides dynamic response to multiple end users simultaneously is called web application. 2.What is client-server architecture? The architecture which is useful for developing applications to sending the request and getting dynamic response is called client-server architecture. We can also call as request and response architecture. 3.Is java technology? Yes. Java provides rules or specifications to third party organizations in the form of interfaces by using abstract methods. Ex: JDBC is [...]

Read more...

Java Interview Questions and Answers

What is Collection API ? The Collection API is a set of classes and interfaces that support operation on collections of objects. These classes and interfaces are more flexible, more powerful, and more regular than the vectors, arrays, and hashtables if effectively replaces. Example of classes: HashSet, HashMap, ArrayList, LinkedList, TreeSet and TreeMap. Example of interfaces: Collection, Set, List and Map. Is Iterator a Class or Interface? What is its use? Iterator is an interface which is used to step through the elements of [...]

Read more...

Java Interview Questions

What is Java? Java is a distributed application software Java is the high-level, object-oriented programming Java is API Document. What are differences between C, C++ and Java? Why java or What are the features in JAVA? Features of Java: Oops concepts Class object Inheritance Encapsulation Polymorphism Abstraction Platform independent: Java is System independent as well as Platform independent because it works with diff System hw as well as Diff Platforms(diff operating Systems) High Performance: JIT (Just In Time compiler) enables high performance in Java. JIT converts the bytecode into machine language and then JVM starts the Multi-threaded: [...]

Read more...

JavaScript Interview Questions

JavaScript Interview Questions and Answers 1) What is JavaScript? Answer: JavaScript is a scripting language. It is different from Java language. It is object-based, lightweight and cross platform. It is widely used for client side validation. 2) What is the difference between JavaScript and jscript? Answer: Netscape provided the JavaScript language. Microsoft modified the name and called it JScript to avoid the trademark issue. In another words, you can say JScript is same as JavaScript, but it is provided by Microsoft. 3) How to write a [...]

Read more...

HTML Interview Questions

HTML Interview Questions 1) What is HTML? Answer: It stands for Hyper Text Markup Language. It is a language of World Wide Web. It is a standard text information language that is employed to form and show pages on the Web page. 2) What are Tags? Answer:  HTML tags are composed of only three things: opening tag, content and ending tag. Some tags are unclosed tags. HTML documents are made of two things; they are content, and tags Content is placed between tags to shows data [...]

Read more...

Core Java Interview Questions and Answers

1) What is Java? Java is a simple, high-level, secure, platform-independent, multithreaded, and object oriented programming language. It was developed by James Gosling in June 1991. It can also be known as the platform as it provides its own runtime environment as JRE and API. 2) What is the difference between JDK, JRE, and JVM? JVM JVM is an acronym for Java Virtual Machine; it is an abstract machine which provides the runtime environment in which Java byte code can be executed. It [...]

Read more...

Top Core Java Interview Questions

Core Java Interview Questions 1. Can we write static block within the method? Answer: No. Compiler will give error. public class Test{ public static void main(String[] args) { static{ } } } Compiletime Error: Illegal start of expression. 2. Can we write return statement without value in constructors? Answer: Yes. public class Test{         Test(){                 return;         }         public static void main(String[] args) {                 {                         System.out.println(“non static block”);                 }         } } 3.What is the difference between static and new keyword? Answer:  New keyword is useful for providing memory for non-static data, it is individual, where as static keyword is [...]

Read more...