Toymods Car Club
www.toymods.org.au
F.A.Q. F.A.Q.    Register Register    Login Login    Home Home
Members Members    Search Search
Toymods » The Outhouse » Java interview questions...

Show: Today's Posts  :: Show Polls 
Email to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
AuthorTopic
Nark
Forums Junkie


Location:
Cabramatta, NSW
Registered:
May 2002
      Nark@toymods.net/Work
icon1.gif  Java interview questions... Tue, 03 February 2004 09:03 Go to next message
I was preparing for an interview today and a friend of mine found this for me...

Got me pretty freaked... Some of these questions are complete bastards!!!

http://javaquestion.tripod.com/interview1.html

1. What is the diffrence between an Abstract class and Interface ?
2. What is user defined exception ?
3. What do you know about the garbate collector ?
4. What is the difference between C++ & Java ?
5. Explain RMI Architecture?
6. How do you communicate in between Applets & Servlets ?
7. What is the use of Servlets ?
8. What is JDBC? How do you connect to the Database ?
9. In an HTML form I have a Button which makes us to open another page in 15 seconds. How will do you that ?
10. What is the difference between Process and Threads ?
11. What is the difference between RMI & Corba ?
12. What are the services in RMI ?
13. How will you initialize an Applet ?
14. What is the order of method invocation in an Applet ?
15. When is update method called ?
16. How will you pass values from HTML page to the Servlet ?
17. Have you ever used HashTable and Dictionary ?
18. How will you communicate between two Applets ?
19. What are statements in JAVA ?
20. What is JAR file ?
21. What is JNI ?
22. What is the base class for all swing components ?
23. What is JFC ?
24. What is Difference between AWT and Swing ?
25. Considering notepad/IE or any other thing as process, What will happen if you start notepad or IE 3 times? Where 3 processes are started or 3 threads are started ?
26. How does thread synchronization occurs inside a monitor ?
27. How will you call an Applet using a Java Script function ?
28. Is there any tag in HTML to upload and download files ?
29. Why do you Canvas ?
30. How can you push data from an Applet to Servlet ?
31. What are 4 drivers available in JDBC ?
32. How you can know about drivers and database information ?
33. If you are truncated using JDBC, How can you know ..that how much data is truncated ?
34. And What situation , each of the 4 drivers used ?
35. How will you perform transaction using JDBC ?
36. In RMI, server object first loaded into the memory and then the stub reference is sent to the client ? or whether a stub reference is directly sent to the client ?
37. Suppose server object is not loaded into the memory, and the client request for it , what will happen?
38. What is serialization ?
39. Can you load the server object dynamically? If so, what are the major 3 steps involved in it ?
40. What is difference RMI registry and OSAgent ?
41. To a server method, the client wants to send a value 20, with this value exceeds to 20,. a message should be sent to the client ? What will you do for achieving for this ?
42. What are the benefits of Swing over AWT ?
43. Where the CardLayout is used ?
44. What is the Layout for ToolBar ?
45. What is the difference between Grid and GridbagLayout ?
46. How will you add panel to a Frame ?
47. What is the corresponding Layout for Card in Swing ?
48. What is light weight component ?
49. Can you run the product development on all operating systems ?
50. What is the webserver used for running the Servlets ?
51. What is Servlet API used for conneting database ?
52. What is bean ? Where it can be used ?
53. What is difference in between Java Class and Bean ?
54. Can we send object using Sockets ?
55. What is the RMI and Socket ?
56. How to communicate 2 threads each other ?
57. What are the files generated after using IDL to Java Compilet ?
58. What is the protocol used by server and client ?
59. Can I modify an object in CORBA ?
60. What is the functionality stubs and skeletons ?
61. What is the mapping mechanism used by Java to identify IDL language ?
62. Diff between Application and Applet ?
63. What is serializable Interface ?
64. What is the difference between CGI and Servlet ?
65. What is the use of Interface ?
66. Why Java is not fully objective oriented ?
67. Why does not support multiple Inheritance ?
68. What it the root class for all Java classes ?
69. What is polymorphism ?
70. Suppose If we have variable ' I ' in run method, If I can create one or more thread each thread will occupy a separate copy or same variable will be shared ?
71. In servlets, we are having a web page that is invoking servlets username and password ? which is cheks in the database ? Suppose the second page also If we want to verify the same information whethe it will connect to the database or it will be used previous information?
72. What are virtual functions ?
73. Write down how will you create a binary Tree ?
74. What are the traverses in Binary Tree ?
75. Write a program for recursive Traverse ?
76. What are session variable in Servlets ?
77. What is client server computing ?
78. What is Constructor and Virtual function? Can we call Virtual funciton in a constructor ?
79. Why we use OOPS concepts? What is its advantage ?
80. What is the middleware ? What is the functionality of Webserver ?
81. Why Java is not 100 % pure OOPS ? ( EcomServer )
82. When we will use an Interface and Abstract class ?
83. What is an RMI?
84. How will you pass parameters in RMI ? Why u serialize?
85. What is the exact difference in between Unicast and Multicast object ? Where we will use ?
86. What is the main functionality of the Remote Reference Layer ?
87. How do you download stubs from a Remote place ?
88. What is the difference in between C++ and Java ? can u explain in detail ?
89. I want to store more than 10 objects in a remote server ? Which methodology will follow ?
90. What is the main functionality of the Prepared Statement ?
91. What is meant by static query and dynamic query ?
92. What are the Normalization Rules ? Define the Normalization ?
93. What is meant by Servelet? What are the parameters of the service method ?
94. What is meant by Session ? Tell me something about HTTPSession Class ?
95. How do you invoke a Servelt? What is the difference in between doPost and doGet methods ?
96. What is the difference in between the HTTPServlet and Generic Servlet ? Expalin their methods ? Tell me their parameter names also ?
97. Have you used threads in Servelet ?
98. Write a program on RMI and JDBC using StoredProcedure ?
99. How do you sing an Applet ?
100. In a Container there are 5 components. I want to display the all the components names, how will you do that one ?
101. Why there are some null interface in java ? What does it mean ? Give me some null interfaces in JAVA ?
102. Tell me the latest versions in JAVA related areas ?
103. What is meant by class loader ? How many types are there? When will we use them ?
104. How do you load an Image in a Servlet ?
105. What is meant by flickering ?
106. What is meant by distributed Application ? Why we are using that in our applications ?
107. What is the functionality of the stub ?
108. Have you used any version control ?
109. What is the latest version of JDBC ? What are the new features are added in that ?
110. Explain 2 tier and 3 -tier Architecture ?
111. What is the role of the webserver ?
112. How have you done validation of the fileds in your project ?
113. What is the main difficulties that you are faced in your project ?
114. What is meant by cookies ? Explain ?
115. Problem faced in your earlier project
116. How OOPS concept is achieved in Java
117. Features for using Java
118. How does Java 2.0 differ from Java 1.0
119. Public static void main - Explain
120. What are command line arguments
121. Explain about the three-tier model
122. Difference between String & StringBuffer
123. Wrapper class. Is String a Wrapper Class
124. What are the restriction for static method
125. Purpose of the file class
126. Default modifier in Interface
127. Difference between Interface & Abstract class
128. Can abstract be declared as Final
129. Can we declare variables inside a method as Final Variables
130. What is the package concept and use of package
131. How can a dead thread be started
132. Difference between Applet & Application
133. Life cycle of the Applet
134. Can Applet have constructors
135. Differeence between canvas class & graphics class
136. Explain about Superclass & subclass
137. Difference between TCP & UDP
138. What is AppletStub
139. Explain Stream Tokenizer
140. What is the difference between two types of threads
141. Checked & Unchecked exception
142. Use of throws exception
143. What is finally in exception handling
144. Vector class
145. What will happen to the Exception object after exception handling
146. Two types of multi-tasking
147. Two ways to create the thread
148. Synchronization
149. I/O Filter
150. How can you retrieve warnings in JDBC
151. Can applet in different page communicate with each other
152. Four driver Manager
153. Features of JDBC 20
154. Explain about stored procedures
155. Servlet Life cycle
156. Why do you go for servlet rather than CGI
157. How to generate skeleton & Stub classes
158. Explain lazy activation
159. Firewalls in RMI
  Send a private message to this user    
ehendrikd
Forums Junkie


Location:
ballarat
Registered:
April 2003
 
Re: Java interview questions... Tue, 03 February 2004 22:50 Go to previous messageGo to next message
Nark wrote on Tue, 03 February 2004 20:03

29. Why do you Canvas ?


sounds a little bit japlish Confused

on a different note...

has any one ever noticed that the String object in java is the only object in java that is passed by value? and i dont think this is documented (or i havent found where it is documented). a while ago i remember trying to use a recurisve method that was passed a String and altered that string, and after the recursive method finished, there was no change to the string. i had to create a wrapper class that had one string as a member and pass that to the method. i just think its is a litle strange they diddn't tell us about this.

eg....

public class StringByValue {
	public static void main(String psAryArgs[]) {
		String sText = "";
		recursiveMethod(sText, 0);
		System.out.println("sText ->" + sText + "<-");
		StringWrapper oText = new StringWrapper("");
		recursiveMethod(oText, 0);
		System.out.println("oText ->" + oText + "<-");
	}
	public static void recursiveMethod(Object poObject, int piCount) {
		if (piCount == 10) {
			return;
		}
		if (poObject instanceof String) {
			String sText = (String)poObject;
			sText += String.valueOf(piCount);
		} else {
			StringWrapper oText = (StringWrapper)poObject;
			oText.fsText += String.valueOf(piCount);
		}
		recursiveMethod(poObject, piCount + 1);
	}
	static class StringWrapper {
		String fsText = "";
		public StringWrapper(String psText) {
			fsText = psText;
		}
		public String toString() {
			return fsText;
		}
	}
}


can cause big problems if you assume a String is passed by reference Mad
  Send a private message to this user    
RobST162
Forums Junkie


Location:
Epping, Sydney
Registered:
April 2003
Re: Java interview questions... Tue, 03 February 2004 22:51 Go to previous messageGo to next message
NERD ALERT!!!!!!!!!!!!!!!! Razz Cool Very Happy



(takes one to know one tho.. Smile )
  Send a private message to this user    
ehendrikd
Forums Junkie


Location:
ballarat
Registered:
April 2003
 
Re: Java interview questions... Tue, 03 February 2004 22:52 Go to previous messageGo to next message
guilty as charged Very Happy
  Send a private message to this user    
ed_ma61
Forums Junkie


Location:
Lost in the K hole
Registered:
May 2002
Re: Java interview questions... Tue, 03 February 2004 22:59 Go to previous messageGo to next message
retracts dumb, ghey, sleep deprived comment....

[Updated on: Tue, 03 February 2004 23:07]

  Send a private message to this user    
ehendrikd
Forums Junkie


Location:
ballarat
Registered:
April 2003
 
Re: Java interview questions... Tue, 03 February 2004 23:51 Go to previous messageGo to next message
ah its all good dude Very Happy i gotta get a job where i'm not sitting in front of a f#%king computer all day Confused makes me something, something..... go crazy?.... DON'T MIND IF I DO!! balljddisjadlljjhznnnnssdsd
  Send a private message to this user    
SIMDOG
Forums Junkie


Location:
Bayside Melbourne.
Registered:
May 2003
Re: Java interview questions... Tue, 03 February 2004 23:55 Go to previous messageGo to next message
You know you are crazy when you do that joke by yourself. Laughing
  Send a private message to this user    
justcallmefrank
Forums Junkie


I supported Toymods

Location:
Perth
Registered:
May 2002
 
Re: Java interview questions... Wed, 04 February 2004 00:05 Go to previous messageGo to next message
I wish I didn't understand what you were saying...aw man, I'm a nerd Razz
  Send a private message to this user    
ehendrikd
Forums Junkie


Location:
ballarat
Registered:
April 2003
 
Re: Java interview questions... Wed, 04 February 2004 00:05 Go to previous messageGo to next message
me crazy? never. am i talking to myself? probably.

hey ed, i just noticed your sig with the primus verse in it, have you heard/seen their latest album? i managed to get hold of it when i was on holiday in adelaide.

"animals should try not to act like people"

it hae 4 new songs which are ok, but the coolest bit is that it comes with a dvd of all 12 of their music videos, very funky Very Happy
  Send a private message to this user    
ed_ma61
Forums Junkie


Location:
Lost in the K hole
Registered:
May 2002
Re: Java interview questions... Wed, 04 February 2004 00:17 Go to previous messageGo to next message
no, i havent seen it around (not that ive been looking either...)

might go hunting, sounds good. the vids arent that common on kazaa
  Send a private message to this user    
Nark
Forums Junkie


Location:
Cabramatta, NSW
Registered:
May 2002
      Nark@toymods.net/Work
icon4.gif  Re: Java interview questions... Wed, 04 February 2004 00:39 Go to previous messageGo to next message
ehendrikd wrote on Wed, 04 February 2004 09:50

has any one ever noticed that the String object in java is the only object in java that is passed by value?


WTF?!?!?

Java only passes variables into methods using pass by value.
  Send a private message to this user    
ehendrikd
Forums Junkie


Location:
ballarat
Registered:
April 2003
 
Re: Java interview questions... Wed, 04 February 2004 00:52 Go to previous messageGo to next message
all variables in java are by value, from a c++ perspective behind the scences java passes all object variables by reference, and all primative types by value. you just dont have any control over it like you do in c++.
  Send a private message to this user    
Squid
Forums Junkie


Location:
Canberra
Registered:
August 2003
 
Re: Java interview questions... Wed, 04 February 2004 01:11 Go to previous messageGo to next message
Are you talking Java (sun) or J++ (microsoft)??

Because the two do vary in variable passing a believe.
  Send a private message to this user    
ehendrikd
Forums Junkie


Location:
ballarat
Registered:
April 2003
 
Re: Java interview questions... Wed, 04 February 2004 01:26 Go to previous messageGo to next message
havent used j++ (nor do i intend to) so sun, if j++ passes differntly it goes against the whole 'platform independance' thing, if you assume it passes one way in j++ it will not work the same in the sun jvm

then again thats microsoft Confused

come to think of it i had heard somewhere about sun going off at microsoft for something of this nature in j++

[Updated on: Wed, 04 February 2004 01:27]

  Send a private message to this user    
Squid
Forums Junkie


Location:
Canberra
Registered:
August 2003
 
Re: Java interview questions... Wed, 04 February 2004 01:32 Go to previous message
That sort of inconsitency is why we have c# not j++ now...
  Send a private message to this user    
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic:The Last Hurrah
Next Topic:Super Bowl XXXVIII (has some of the results)
Goto Forum:
-=] Back to Top [=-

Current Time: Sun Nov 24 11:12:15 UTC 2024

Total time taken to generate the page: 0.0080721378326416 seconds

Bandwidth utilization bar

.:: Contact :: Home ::.

Powered by: FUDforum 2.3.8
Copyright ©2001-2003 Advanced Internet Designs Inc.