You are on page 1of 9

www.emphasiscareer.

com

ECS Technical Question Bank


1. What is platform? What is a System/Computer?
2. What is system software?
3. What is application software?
4. What is desktop application and give example?
5. What is web application and give example?

lut
io n
s

Emphasis Career Solutions, Bangalore

6. Difference between web application and desktop application?


8. What is java and mention features?
9. Difference between java c and c++?
11. What is JDK, JRE and JVM?
12. Execution sequence of java?
13. What is IDE and give examples?

er

10. Difference between explicit and implicit?

So

7. Merits and demerits of web desktop application?

15. What is code review?

re

14. Latest version of java and its features?

Ca

16. Is it possible to have more than one public class in same file?
17. What is file system and different types of file system?
18. What are environment variables?

19. Is it possible to have file name as java eg.java.java?


}

is

20. Public class Hello {

as

Class one {
Class two {
}

ph

Class three {
}

How many .class files will create in the above code?


21. What is virtual machine and types of virtual machine?

Em

22. How java achieves platform independent?


23. What are bytecodes?
24. What are datatypes? And types of data types?
Emphasis Career Solutions, Bangalore

www.emphasiscareer.com

www.emphasiscareer.com

25. What are keywords? And how many keywords?


26. Difference between c++ #inlcude and java import?
27. What is API?
28. What are comments and types of comments in java?

lut
io n
s

Emphasis Career Solutions, Bangalore

29. What is global variable? Does java supports global variable give reason?
30. Define following terms: object, class, inheritance, interface, package
31.what is constructor and write syntax?
33.how do you create objects in java?

So

32. What is object class explain with example

34. What is default constructor? Is it recommended to write default constructor


explicitly?
36. What is method and write syntax.

er

35. Types of variable and explain with example.


37. Naming convention for class and variable.

38. Difference between constructor and method

re

39. Is it possible to inherit constructor?

40. What is main method in java? Explain syntax of main method?

Ca

41. Different formats of main methods.

42 what are command line arguments with example?


43. What are access specified in java?

44. Different type of access specified in java with example?


45. What is order of restriction of access specifies?

is

46. Different type of operator in java?


47. Explain about bitwise operator with example?

as

48. Explain type of flow control in java with example?


49. What is exit center and entry center loop?
50. Syntax of for loop with example?

ph

51. Name the package imported by default?


52. Syntax of array in java with example?
53. Explain inheritance in java with example? Write syntax of it?
54. Will java support multiple inheritances?

Em

55. What is diamond problem in java?


56. Different type of classes in java?
57. Every class has ____ as a super class by default.
Emphasis Career Solutions, Bangalore

www.emphasiscareer.com

www.emphasiscareer.com

58. How many methods for the object class?

lut
io n
s

Emphasis Career Solutions, Bangalore

59. What is static or class variable with example & syntax?


60. What is instance variable with example& syntax?
61. Can static variable be inherited?

62. When the memory is allocated to instance and static variable?


63. What is static and instance initialization block with syntax?

64. From below whom all take default valuelocal var, instance variable, parameter
variable, and static variable?

So

65. Difference between static and instance initialization block?

66. Difference between function overloading and function overriding?


67. Define abstract class in java with example?
68. Define interface and properties of interface?

er

69. Can abstract class be final?

70. Can access specifies given to static variable or instance variable?


71. Will interface support multiple inheritances?

re

72. Define OOPs?

73. Explain following termsabstraction, encapsulation, polymorphism, inheritance

Ca

74.Define package and why is it recommended to write class inside the package?
75. Different type of polymorphism?

76. Different between error and exception?


77. Give the class hierarchy of exception?
78. Is exception is a class or method?

is

79. What is try-catch method with example?


80. What is throw with example?

as

81. Different between final,finally,finalizes?


82. Give 5 examples of check and unchecked expectation?
83. Name the method which are final in object class?

ph

84. What is reference in java?


85. What is wrapper class in java?
86. Is string is a data type or a class?
87. How the java program run in details?

Em

88. Give the correct order of writing java program?


89. Why we cannot call non-static method inside static method?
Emphasis Career Solutions, Bangalore

www.emphasiscareer.com

www.emphasiscareer.com

lut
io n
s

Emphasis Career Solutions, Bangalore

90. What is the difference between light weight process and heavy weight process?
91. What are threads?
92. Difference between thread and process?
93. Multitasking vs. multithreading.
94. What is a daemon thread?
95. What is a zombie thread?

96. Which thread keeps on running in a java program until the program is over?
97. In which class wait() method is defined?

So

98. Difference between wait( ) and sleep( ) method?


99. Can you make a class synchronized?

100. What are the different ways of creating threads? Which one is better?
101. Name some methods in thread class?

er

102. What are thread priority?

103. Synchronized method vs. synchronized block.


104. What are static imports?

re

105. What is a transient variable in java?


106. Transient vs. volatile in java?

Ca

107. throws vs. throws in java

108. Name any component of JVM.


109. What are files?

110. Difference between taking input from java.util.Scanner Class and


java.io.DataInputStream.

is

111. What do you mean by serialization?


112. What is use of serialVersionUID?

as

113. What is the need of Serialization?


114. Other than Serialization what are the different approach to make object
Serializable?

ph

115. Do we need to implement any method of Serializable interface to make an object


serializable?

116. What happens if the object to be serialized includes the references to other
serializable objects?

Em

117. What happens if an object is serializable but it includes a reference to a nonserializable object?
118. Are the static variables saved as the part of serialization?
Emphasis Career Solutions, Bangalore

www.emphasiscareer.com

www.emphasiscareer.com

lut
io n
s

Emphasis Career Solutions, Bangalore

119. What is a transient variable?

120. What will be the value of transient variable after de-serialization?

121. Does the order in which the value of the transient variables and the state of the
object using the defaultWriteObject() method are saved during serialization matter?
122. How can one customize the Serialization process? or What is the purpose of
implementing the writeObject() and readObject() method?

123. If a class is serializable but its superclass in not , what will be the state of the
instance variables inherited from super class after deserialization?
True /False?

So

124. To serialize an array or a collection all the members of it must be serializable.

125. Which part of the memory is involved in Garbage Collection? Stack or Heap?

er

126. What is responsiblity of Garbage Collector?


127. Garbage Collector is controlled by whom?

128. When does an object become eligible for garbage collection?


when it is no longer needed?

re

129. What are the different ways to make an object eligible for Garbage Collection
130. Can the Garbage Collection be forced by any means?

Ca

131. How can the Garbage Collection be requested?

132. What is the purpose of overriding finalize() method?


133. If an object becomes eligible for Garbage Collection and its finalize() method
has been called and inside this method the object becomes accessible by a live thread

is

of execution and is not garbage collected. Later at some point the same object
becomes eligible for Garbage collection, will the finalize() method be called again?

as

134. How many times does the garbage collector calls the finalize() method for an
object?

135. What happens if an uncaught exception is thrown from during the execution of
the finalize() method of an object?

ph

136. What are different ways to call garbage collector?


137. How to enable/disable call of finalize() method of exit of the application?
138. What are the different types of references in java?

Em

139. What is the difference between equals() and ==?


140. How to find the size of an object?

Emphasis Career Solutions, Bangalore

www.emphasiscareer.com

www.emphasiscareer.com

lut
io n
s

Emphasis Career Solutions, Bangalore

Collections Questions:

1. What is the main difference between an ArrayList and a Vector? What is the main
difference between Hashmap and Hashtable?
2. Explain the Java Collection framework?

3. What are the benefits of the Java collection framework?


4. Name the java collection package.
5

So

5. What are some of the best practices relating to Java collection?

When providing a user defined key class for storing objects in the Hashmaps or

Hashtables, what methods do you have to provide or override (i.e. method


overriding)?

6 What is the difference between java.util.Iterator and java.util.ListIterator?

er

7 What does synchronized means in Hashtable context?


8 What is fail-fast property?

re

9 How can we make Hashmap synchronized?

10 Where will you use Hashtable and where will you use HashMap?
11 Difference between Vector and ArrayList?

Ca

12 What is the Vector class?

13 What is the Difference between Enumeration and Iterator interface?


14 Why Java Vector class is considered obsolete or unofficially deprecated? or Why
should I always use ArrayList over Vector?
15 What is an enumeration?

is

16 What is the difference between Enumeration and Iterator?


17 Where will you use Vector and where will you use ArrayList?

as

18 What is the importance of hashCode() and equals() methods? How they are used
in Java?

19 What is the difference between Sorting performance of Arrays.sort() vs.

ph

Collections.sort() ? Which one is faster? Which one to use and when?


20 What is java.util.concurrent BlockingQueue? How it can be used?
21 Set & List interface extend Collection, so Why doesn't Map interface extend

Em

Collection?

22 Which implementation of the List interface provides for the fastest insertion of a
new element into the middle of the list?
Emphasis Career Solutions, Bangalore

www.emphasiscareer.com

www.emphasiscareer.com

lut
io n
s

Emphasis Career Solutions, Bangalore

23 What is the difference between ArrayList and LinkedList? (ArrayList vs.


LinkedList.)
24 What is the difference between set and list?
25 What is the Properties class?
26 What is a tree and Its types?
27 Can you limit the initial capacity of vector in java?

28 Write a program to make an arraylist of 5 and iterate its elements?

29 What is the main difference between shallow cloning and deep cloning of objects?

So

30 Difference between a framework and an API ?

31 How can Arraylist be synchronized without using Vector?

32 If an Employee class is present and its objects are added in an arrayList. Now I
want the list to be sorted on the basis of the employeeID of Employee class. What are

er

the steps?

33 What is a Comparable interface? When is it used?

34 Consider a scenario. If an ArrayList has to be iterate to read data only, what are

re

the possible ways and which is the fastest?


35 How to sort list in reverse order?

Ca

36 What is WeakHashMap?
37 What is identityHashMap?

38 What is ConcurrentHashMap?

39 Can a null element added to a Treeset or HashSet?

Em

ph

as

is

40 What is a cloneable interface and how many methods does it contain?

Emphasis Career Solutions, Bangalore

www.emphasiscareer.com

www.emphasiscareer.com

J2ee Questions

lut
io n
s

Emphasis Career Solutions, Bangalore

1. What makes J2EE suitable for distributed multitier Applications?


2. What is J2EE?
3. What are the components of J2EE application?
What do Enterprise JavaBeans components contain?
Is J2EE application only a web-based?

So

Are JavaBeans J2EE components?


Is HTML page a web component?

What can be considered as a web component?


What is the container?
11. What is the web container?

er

10. What are container services?

12. What is Enterprise JavaBeans (EJB) container?

re

13. What is Applet container?

14. How do we package J2EE components?


15. What is a thin client?

Ca

16. What are types of J2EE clients?

17. What is deployment descriptor?


18. What is the EAR file?

19. What is JTA and JTS?


20. What is JAXP?

is

21. What is J2EE Connector?


22. What is JAAP?

as

23. What is Java Naming and Directory Service?


24. What is a JSP? What is it used for? What do you understand by the term JSP
translation phase or compilation phase?

ph

25. Explain the life cycle methods of a JSP?


26. What are different type of scripting elements?
27. What are the different scope values or what are the different scope values for

Em

"jsp:usebean"?

28. What are the differences between static and a dynamic include?
29. Is JSP variable declaration thread safe?

Emphasis Career Solutions, Bangalore

www.emphasiscareer.com

www.emphasiscareer.com

lut
io n
s

Emphasis Career Solutions, Bangalore

30. Explain JSP URL mapping? What is URL hiding or protecting the JSP page?
31. What are custom tags? Explain how to build custom tags?

32. What is the difference between custom JSP tags and JavaBeans?
31. What is a Expression?
32. Difference between forward and sendRedirect?
33. What are implicit objects? List them?

34. How do I prevent the output of my JSP or Servlet pages from being cached by
the browser?

So

35. How to implement a thread-safe JSP page? What are the advantages and
Disadvantages of using it?

36. Why to use the HttpServlet Init method to perform expensive operations that
need only be done once?

er

37. Why is it not a good practice to create HttpSessions in JSPs by default?

Em

ph

as

is

Ca

re

38. What are the standard actions available in JSP?

Emphasis Career Solutions, Bangalore

www.emphasiscareer.com

You might also like