Thursday, January 29, 2009

Question Bank of Web-Tools

Data Types/ Basic concepts of java:

1) What is variable?
2) What are the kinds of variables in Java? What are their uses?

3) What are the Characteristics of java?

4) What is Oops Principal?
5) What do you mean by type conversion and type casting?

7)
8) What is static variable?
Main method, Data Type
9. What if the main method is declared as private?
.
10. What is meant by pass by reference and pass by value in Java?
11. What is Byte Code?
Or
12. What gives java it’s “write once and run anywhere” nature?
13. What are the differences between == and .equals() ?
Or
what is difference between == and equals
Or
Difference between == and equals method
Or
What would you use to compare two String variables - the operator == or the method equals()?
Or
How is it possible for two String objects with identical values not to be equal under the == operator?
Methods:
14. What if the static modifier is removed from the signature of the main method?
Or
What if I do not provide the String array as the argument to the method?

15. Why oracle Type 4 driver is named as oracle thin driver?
16. What is the difference between final, finally and finalize? What do you understand by the java final keyword?
Or
What is final, finalize() and finally?
Or
What is finalize() method?
Or
What is the difference between final, finally and finalize?
Or
What does it mean that a class or member is final?
17. What is the Java API?

Class:
18. What is the GregorianCalendar class?
19. What is the ResourceBundle class?
20. Why there are no global variables in Java?
21. How to convert String to Number in java program?
22. What is the SimpleTimeZone class?
23. What is the difference between a while statement and a do statement?
24. What is the Locale class?
25. Describe the principles of OOPS.
.
26. Explain the Inheritance principle.
Data Types:
27. What is implicit casting?
28. Is sizeof a keyword in java?
29. What is a native method?
30. In System.out.println(), what is System, out and println?
31. What are Encapsulation, Inheritance and Polymorphism
Or
Explain the Polymorphism principle. Explain the different forms of Polymorphism.
32. What is explicit casting?
33. What is the Java Virtual Machine (JVM)?
34. What are Java Access Specifiers?
Or
What is the difference between public, private, protected and default Access Specifiers?
Or
What are different types of access modifiers?
35. Which class is the superclass of every class?

36. Name primitive Java types.
37. What is the difference between static and non-static variables?
Or
What are class variables?
Or
What is static in java?
Or
What is a static method?
38. What is the difference between the boolean & operator and the && operator?
39. How does Java handle integer overflows and underflows?

40. What if I write static public void instead of public static void?
41. What is the difference between declaring a variable and defining a variable?
42. What type of parameter passing does Java support?
43. Explain the Encapsulation principle.

44. What do you understand by a variable?
.
45. What do you understand by numeric promotion?
.
46. What do you understand by casting in java language? What are the types of casting?
String
47. What is the first argument of the String array in main method?
48. How can one prove that the array is not null but empty?

49. Can an application have multiple classes having main method?
50. When is static variable loaded? Is it at compile time or runtime? When exactly a static block is loaded in Java?

51. Can I have multiple main methods in the same class?
52. Explain working of Java Virtual Machine (JVM)?
53. How can I swap two variables without using a third variable?
54. What is data encapsulation?
55. What is reflection API? How are they implemented?
56. Does JVM maintain a cache by itself? Does the JVM allocate objects in heap? Is this the OS heap or the heap maintained by the JVM? Why

57. What is phantom memory?
Can a method be static and synchronized?
58. What is difference between String and StringTokenizer?
59: What are the benefits of inheritance?

61: Why doesn't Java support multiple inheritance?

62. Doesn't implicit Object inheritance create multiple inheritance?
63. Can I achieve multiple inheritance without interfaces?
64. What if two interface methods clash in implementation?
65. Can you give an example of multiple inheritance with interfaces?
66. What is the difference between abstract classes and inheritance?
67. What's the difference between importing and extending a class?
68. How can I use inheritance in graphical user interfaces?
69. How can I prevent a class from being extended?

70. Overridden methods
Q: What is overriding?
71. Why do overridden methods on a subclass have priority over the superclass?
71. How can I call an overridden method in the superclass?

72. How can I get the superclass to call back to a method in the subclass?
73. How do you prevent a method from being overridden?

74. How can I find the inherited attributes of a class?
75. How can I prevent inheritance without marking a class final?
76. I assume inherited fields and members are non-private, are they?
77. What is the protected modifier for?
78. What visibility modifiers can I use to override a protected method?
79. Can constructors have visibility modifiers?
80 what is an Applet? Should applets have constructors?
What are the Applet’s Life Cycle methods? Explain them? - Following are
a. What is the sequence for calling the methods by AWT for applets? - When an
How do Applets differ from Applications? -
81. How do we read number information from my applet’s parameters, given that Applet’s getParameter() method returns a string?
How can I arrange for different applets on a web page to communicate with each other?

How do I determine the width and height of my application?

82. Which classes and interfaces does Applet class consist? What is AppletStub Interface?.
91. What are the Applet’s information methods?

92. Parse an XML file or XML file validation
93. What is XMLA define it ?
94. What is XML ?

96. What is XPath?

97. What is XHTML?

98. What is XML Parser ?



99. Some Limitation or Disadvantage of XML?
100. How do I convert my existing HTML documents into XML?

101. What is a schema? What are the limitations of a DTD?

102. WHAT IS eCOMMERCE?
xml file. DTD (DATA TYPE DEFINITION ) which supervises two conditions namely well
103. WHAT IS AN ON-LINE CATALOGUE?
104. WHY WOULD I WANT TO USE AN ON-LINE CATALOGUE?

No comments: