java questions
#1

java questions


1. What is garbage collection? What is the process that is responsible for doing that in java?
Reclaiming the unused memory by the invalid objects. Garbage collector is responsible for this process

2. What kind of thread is the Garbage collector thread?
It is a daemon thread.

3. What is a daemon thread?
These are the threads which can run without user intervention. The JVM can exit when there are daemon thread by killing them abruptly.

4. How will you invoke any external process in Java?
Runtime.getRuntime().exec(….)

5. What is the finalize method do? –
Before the invalid objects get garbage collected, the JVM give the user a chance to clean up some resources before it got garbage collected.

6. What is mutable object and immutable object? –
If a object value is changeable then we can call it as Mutable object. (Ex., StringBuffer, …) If you are not allowed to change the value of an object, it is immutable object. (Ex., String, Integer, Float, …)

7. What is the basic difference between string and stringbuffer object?
String is an immutable object. StringBuffer is a mutable object.

8. What is the purpose of Void class?
The Void class is an uninstantiable placeholder class to hold a reference to the Class object representing the primitive Java type void.

9. What is reflection? –
Reflection allows programmatic access to information about the fields, methods and constructors of loaded classes, and the use reflected fields, methods, and constructors to operate on their underlying counterparts on objects, within security restrictions.

10. What is the base class for Error and Exception? –
Throwable

11. What is the byte range?
-128 to 127

12. What is the implementation of destroy method in java.. is it native or java code? –
This method is not implemented.

13. What is a package?
To group set of classes into a single unit is known as packaging. Packages provides wide namespace ability.

14. What are the approaches that you will follow for making a program very efficient?
By avoiding too much of static methods avoiding the excessive and unnecessary use of synchronized methods Selection of related classes based on the application (meaning synchronized classes for multiuser and non-synchronized classes for single user) Usage of appropriate design patterns Using cache methodologies for remote invocations Avoiding creation of variables within a loop and lot more.

15. What is a DatabaseMetaData?
Comprehensive information about the database as a whole.
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: java questions in doc, java questions doc, java project questions, project questions in java, java projects questions,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  Physics Lab Viva Voce Questions and its answers Laser Parameters seminar addict 2 10,257 12-05-2014, 10:04 PM
Last Post: seminar report asees
  Privacy-Preserving Updates to Anonymous and Confidential Databases - JAVA project uploader 3 2,184 23-12-2012, 07:35 PM
Last Post: mr.patil1234
  Java™: The Complete Reference, Seventh Edition project uploader 0 1,052 09-06-2012, 05:07 PM
Last Post: project uploader
  An Ontology-Supported Web Focused-Crawler for Java Programs project uploader 0 1,168 08-06-2012, 11:31 AM
Last Post: project uploader
  Building a Java chat server seminar details 0 1,336 07-06-2012, 12:07 PM
Last Post: seminar details
  Understanding the Java ClassLoader seminar paper 0 858 15-03-2012, 02:37 PM
Last Post: seminar paper
  Java Basics project uploader 0 872 14-03-2012, 10:19 AM
Last Post: project uploader
  Object Oriented Programming with Java seminar paper 0 848 12-03-2012, 03:40 PM
Last Post: seminar paper
  G. K. questions seminar paper 0 862 08-03-2012, 05:04 PM
Last Post: seminar paper
  Quantitative Comparison Questions seminar paper 0 742 25-02-2012, 04:46 PM
Last Post: seminar paper

Forum Jump: