Interview Questions Asked in several Multi National Companies
1) what is the difference between Interfaces and Abstract classes?
2) what is the use of interfaces and abstract classes?
3) what are the classes/interfaces available in java.io package?
4) write the code to read the contents of a file and display it on the console.
5) In which Class the toString() is defined?
6) If we call the toString() with the reference of any object, what will it return?
7) what is Serialization and where do you use it?
8) what is the difference between String,StringBuffer and StringBuilder?
9) what is the parent class of Exception and how many types of Exceptions are available in Java?
10) How can you write a userdefined exceptions and where do you use them?
11) write an example for polymorphism other than text book examples?
12) what is the difference between HashMap and HashTree?
13) write the code to insert and retrieve elements from HashMap?
14) what is the difference between Iterator and ListIterator?
15) what is the difference between Statement and PreparedStatement?
16) How PreparedStatement will be more effective and when?
17) what is a CallableStatement?
18) what is a procedure and write the code to call a procedure from the jdbc program?
19) where do the procedures store and in which format?
20) where the procedures got executed and generally where do we use them?
21) How can we write the Join Queries and what is the use of these queries?
22) what is the primary key and why do we use the primary key?
23) why do we use the relations among tables?
24) what is the difference between post and get methods?
25) write the html tag to use image as a hyperlink with the alternate message?
26) write the tag to create a radio button in HTML.
27) write any sample code that you used in javascript?
28) what are the objects that you used in javascript?
29) Explain the lifecycle of a servlet and what are scenarios in which the destroy method executes?
30) what is the difference between servlets and JSPs?
31) what are the implicit objects available in JSPs?
32) what are the methods available in JSPs?
33) Explain about the Bubble Sort Technique by taking the numbers: 2 8 4 6 3 1
34) How can you set the CLASSPATH in MyEclipse IDE?
35) How can you pass the command line arguments in MyEclipse IDE?
36) write the logic to display the tables from 1 to 20 each table upto 20 rows.
37) Apache tomcat is which type of server?
1) what is the difference between Interfaces and Abstract classes?
2) what is the use of interfaces and abstract classes?
3) what are the classes/interfaces available in java.io package?
4) write the code to read the contents of a file and display it on the console.
5) In which Class the toString() is defined?
6) If we call the toString() with the reference of any object, what will it return?
7) what is Serialization and where do you use it?
8) what is the difference between String,StringBuffer and StringBuilder?
9) what is the parent class of Exception and how many types of Exceptions are available in Java?
10) How can you write a userdefined exceptions and where do you use them?
11) write an example for polymorphism other than text book examples?
12) what is the difference between HashMap and HashTree?
13) write the code to insert and retrieve elements from HashMap?
14) what is the difference between Iterator and ListIterator?
15) what is the difference between Statement and PreparedStatement?
16) How PreparedStatement will be more effective and when?
17) what is a CallableStatement?
18) what is a procedure and write the code to call a procedure from the jdbc program?
19) where do the procedures store and in which format?
20) where the procedures got executed and generally where do we use them?
21) How can we write the Join Queries and what is the use of these queries?
22) what is the primary key and why do we use the primary key?
23) why do we use the relations among tables?
24) what is the difference between post and get methods?
25) write the html tag to use image as a hyperlink with the alternate message?
26) write the tag to create a radio button in HTML.
27) write any sample code that you used in javascript?
28) what are the objects that you used in javascript?
29) Explain the lifecycle of a servlet and what are scenarios in which the destroy method executes?
30) what is the difference between servlets and JSPs?
31) what are the implicit objects available in JSPs?
32) what are the methods available in JSPs?
33) Explain about the Bubble Sort Technique by taking the numbers: 2 8 4 6 3 1
34) How can you set the CLASSPATH in MyEclipse IDE?
35) How can you pass the command line arguments in MyEclipse IDE?
36) write the logic to display the tables from 1 to 20 each table upto 20 rows.
37) Apache tomcat is which type of server?