Click to join OneStopJava
A man has a wolf, a goat, and a cabbage. He must cross a river with the two animals and the cabbage. There is a small rowing-boat, in which he can take only one thing with him at a time. If, however, the wolf and the goat are left alone, the wolf will eat the goat. If the goat and the cabbage are left alone, the goat will eat the cabbage. How can the man get across the river with the two animals and the cabbage? http://www.newinterviewquestions.com/interview/4510
Top 100 JAVA Questions Asked in Actual Interviews
How do I instantiate a bean whose constructor accepts parameters using the useBean tag? http://www.newinterviewquestions.com/interview/340 Replacing Characters in a String? http://www.newinterviewquestions.com/interview/341 Connecting to a Database and Strings Handling? http://www.newinterviewquestions.com/interview/343 What is a transient variable? http://www.newinterviewquestions.com/interview/344 What is the difference between Serializalble and Externalizable interface? http://www.newinterviewquestions.com/interview/345 How many methods in the Externalizable interface? http://www.newinterviewquestions.com/interview/346 How many methods in the Serializable interface? http://www.newinterviewquestions.com/interview/347 How to make a class or a bean serializable? http://www.newinterviewquestions.com/interview/348 What is the serialization? http://www.newinterviewquestions.com/interview/349 What are synchronized methods and synchronized statements? http://www.newinterviewquestions.com/interview/350 What is synchronization and why is it important? http://www.newinterviewquestions.com/interview/351 What is the purpose of finalization? http://www.newinterviewquestions.com/interview/352 What classes of exceptions may be caught by a catch clause? http://www.newinterviewquestions.com/interview/353 What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy? http://www.newinterviewquestions.com/interview/354 What happens when a thread cannot acquire a lock on an object? http://www.newinterviewquestions.com/interview/355 What restrictions are placed on method overriding? http://www.newinterviewquestions.com/interview/356 What restrictions are placed on method overloading? http://www.newinterviewquestions.com/interview/357 How does multithreading take place on a computer with a single CPU? http://www.newinterviewquestions.com/interview/358 How is it possible for two String objects with identical values not to be equal under the == operator? http://www.newinterviewquestions.com/interview/359 How are this() and super() used with constructors? http://www.newinterviewquestions.com/interview/360 What class allows you to read objects directly from a stream? http://www.newinterviewquestions.com/interview/361 What is the ResourceBundle class? http://www.newinterviewquestions.com/interview/362 What interface must an object implement before it can be written to a stream as an object? http://www.newinterviewquestions.com/interview/363 What is Serialization and deserialization? http://www.newinterviewquestions.com/interview/364 What are the Object and Class classes used for? http://www.newinterviewquestions.com/interview/365 Can you write Java code for declaration of multiple inheritance in Java ? http://www.newinterviewquestions.com/interview/366 What do you mean by multiple inheritance in C+;+ ? http://www.newinterviewquestions.com/interview/367 Write the Java code to declare any constant (say gravitational constant) and to get its value. http://www.newinterviewquestions.com/interview/368 What are the disadvantages of using threads? http://www.newinterviewquestions.com/interview/369 Given two tables Student(SID, Name, Course) and Level(SID, level) write the SQL statement to get the name and SID of the student who are taking course = 3 and at freshman level. http://www.newinterviewquestions.com/interview/370 What do you mean by virtual methods? http://www.newinterviewquestions.com/interview/371 What do you mean by static methods? http://www.newinterviewquestions.com/interview/372 What do mean by polymorphism, inheritance, encapsulation? http://www.newinterviewquestions.com/interview/373 What are the advantages of OOPL? http://www.newinterviewquestions.com/interview/374 How many methods do u implement if implement the Serializable Interface? http://www.newinterviewquestions.com/interview/375 Are there any other 'marker' interfaces? http://www.newinterviewquestions.com/interview/376 What is the difference between instanceof and isInstance? http://www.newinterviewquestions.com/interview/377 Why do you create interfaces, and when MUST you use one? http://www.newinterviewquestions.com/interview/378 What's the difference between the == operator and the equals() method? What test does Object.equals() use, and why? http://www.newinterviewquestions.com/interview/379 Discuss the differences between creating a new class, extending a class and implementing an interface; and when each would be appropriate. http://www.newinterviewquestions.com/interview/380 Given a text file, input.txt, provide the statement required http://www.newinterviewquestions.com/interview/381 Name four methods every Java class will have. http://www.newinterviewquestions.com/interview/382 What does the "abstract" keyword mean in front of a method? A class? http://www.newinterviewquestions.com/interview/383 Does Java have destructors? http://www.newinterviewquestions.com/interview/384 Are constructors inherited? Can a subclass call the parent's class constructor? When? http://www.newinterviewquestions.com/interview/385 Does Java have "goto"? http://www.newinterviewquestions.com/interview/388 What does the "final" keyword mean in front of a variable? A method? A class? http://www.newinterviewquestions.com/interview/389 Access specifiers: "public", "protected", "private", nothing? http://www.newinterviewquestions.com/interview/442 What is JDBC? Describe the steps needed to execute a SQL query using JDBC. http://www.newinterviewquestions.com/interview/443 What is RMI? http://www.newinterviewquestions.com/interview/444 What are native methods? How do you use them? http://www.newinterviewquestions.com/interview/445 What does the keyword "synchronize" mean in java. When do you use it? What are the disadvantages of synchronization? http://www.newinterviewquestions.com/interview/446 How many different types of JDBC drivers are present? Discuss them. http://www.newinterviewquestions.com/interview/447 What is the difference between a Vector and an Array. Discuss the advantages and disadvantages of both? http://www.newinterviewquestions.com/interview/448 Describe java's security model. http://www.newinterviewquestions.com/interview/449 Java says "write once, run anywhere". What are some ways this isn't quite true? http://www.newinterviewquestions.com/interview/450 What is the difference between an Applet and an Application? http://www.newinterviewquestions.com/interview/451
How do I instantiate a bean whose constructor accepts parameters using the useBean tag? http://www.newinterviewquestions.com/interview/340
Replacing Characters in a String? http://www.newinterviewquestions.com/interview/341
Connecting to a Database and Strings Handling? http://www.newinterviewquestions.com/interview/343
What is a transient variable? http://www.newinterviewquestions.com/interview/344
What is the difference between Serializalble and Externalizable interface? http://www.newinterviewquestions.com/interview/345
How many methods in the Externalizable interface? http://www.newinterviewquestions.com/interview/346
How many methods in the Serializable interface? http://www.newinterviewquestions.com/interview/347
How to make a class or a bean serializable? http://www.newinterviewquestions.com/interview/348
What is the serialization? http://www.newinterviewquestions.com/interview/349
What are synchronized methods and synchronized statements? http://www.newinterviewquestions.com/interview/350
What is synchronization and why is it important? http://www.newinterviewquestions.com/interview/351
What is the purpose of finalization? http://www.newinterviewquestions.com/interview/352
What classes of exceptions may be caught by a catch clause? http://www.newinterviewquestions.com/interview/353
What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy? http://www.newinterviewquestions.com/interview/354
What happens when a thread cannot acquire a lock on an object? http://www.newinterviewquestions.com/interview/355
What restrictions are placed on method overriding? http://www.newinterviewquestions.com/interview/356
What restrictions are placed on method overloading? http://www.newinterviewquestions.com/interview/357
How does multithreading take place on a computer with a single CPU? http://www.newinterviewquestions.com/interview/358
How is it possible for two String objects with identical values not to be equal under the == operator? http://www.newinterviewquestions.com/interview/359
How are this() and super() used with constructors? http://www.newinterviewquestions.com/interview/360
What class allows you to read objects directly from a stream? http://www.newinterviewquestions.com/interview/361
What is the ResourceBundle class? http://www.newinterviewquestions.com/interview/362
What interface must an object implement before it can be written to a stream as an object? http://www.newinterviewquestions.com/interview/363
What is Serialization and deserialization? http://www.newinterviewquestions.com/interview/364
What are the Object and Class classes used for? http://www.newinterviewquestions.com/interview/365
Can you write Java code for declaration of multiple inheritance in Java ? http://www.newinterviewquestions.com/interview/366
What do you mean by multiple inheritance in C+;+ ? http://www.newinterviewquestions.com/interview/367
Write the Java code to declare any constant (say gravitational constant) and to get its value. http://www.newinterviewquestions.com/interview/368
What are the disadvantages of using threads? http://www.newinterviewquestions.com/interview/369
Given two tables Student(SID, Name, Course) and Level(SID, level) write the SQL statement to get the name and SID of the student who are taking course = 3 and at freshman level. http://www.newinterviewquestions.com/interview/370
What do you mean by virtual methods? http://www.newinterviewquestions.com/interview/371
What do you mean by static methods? http://www.newinterviewquestions.com/interview/372
What do mean by polymorphism, inheritance, encapsulation? http://www.newinterviewquestions.com/interview/373
What are the advantages of OOPL? http://www.newinterviewquestions.com/interview/374
How many methods do u implement if implement the Serializable Interface? http://www.newinterviewquestions.com/interview/375
Are there any other 'marker' interfaces? http://www.newinterviewquestions.com/interview/376
What is the difference between instanceof and isInstance? http://www.newinterviewquestions.com/interview/377
Why do you create interfaces, and when MUST you use one? http://www.newinterviewquestions.com/interview/378
What's the difference between the == operator and the equals() method? What test does Object.equals() use, and why? http://www.newinterviewquestions.com/interview/379
Discuss the differences between creating a new class, extending a class and implementing an interface; and when each would be appropriate. http://www.newinterviewquestions.com/interview/380
Given a text file, input.txt, provide the statement required http://www.newinterviewquestions.com/interview/381
Name four methods every Java class will have. http://www.newinterviewquestions.com/interview/382
What does the "abstract" keyword mean in front of a method? A class? http://www.newinterviewquestions.com/interview/383
Does Java have destructors? http://www.newinterviewquestions.com/interview/384
Are constructors inherited? Can a subclass call the parent's class constructor? When? http://www.newinterviewquestions.com/interview/385
Does Java have "goto"? http://www.newinterviewquestions.com/interview/388
What does the "final" keyword mean in front of a variable? A method? A class? http://www.newinterviewquestions.com/interview/389
Access specifiers: "public", "protected", "private", nothing? http://www.newinterviewquestions.com/interview/442
What is JDBC? Describe the steps needed to execute a SQL query using JDBC. http://www.newinterviewquestions.com/interview/443
What is RMI? http://www.newinterviewquestions.com/interview/444
What are native methods? How do you use them? http://www.newinterviewquestions.com/interview/445
What does the keyword "synchronize" mean in java. When do you use it? What are the disadvantages of synchronization? http://www.newinterviewquestions.com/interview/446
How many different types of JDBC drivers are present? Discuss them. http://www.newinterviewquestions.com/interview/447
What is the difference between a Vector and an Array. Discuss the advantages and disadvantages of both? http://www.newinterviewquestions.com/interview/448
Describe java's security model. http://www.newinterviewquestions.com/interview/449
Java says "write once, run anywhere". What are some ways this isn't quite true? http://www.newinterviewquestions.com/interview/450
What is the difference between an Applet and an Application? http://www.newinterviewquestions.com/interview/451
about | contact Other archives ( Real Estate discussion Medical topics )
Mailing lists
Newsgroups
RFC archive