67. What is daemon thread and which method is used to create the daemon thread? Daemon thread is a low priority thread which runs intermittently in the back ground doing …
Freshers Interview Questions
-  Interview Questions and AnswersJava ProgrammingTechnical Interview Questions and Answers
 -  Interview Questions and AnswersJava ProgrammingTechnical Interview Questions and Answers
Java Basics Interview Questions and Answers For Freshers and Experience Part-9
by Sby S61. What is the purpose of finalization? The purpose of finalization is to give an unreachable object the opportunity to perform any cleanup processing before the object is garbage collected.
 -  Interview Questions and AnswersJava ProgrammingTechnical Interview Questions and Answers
Java Basics Interview Questions and Answers For Freshers and Experience Part-8
by Sby S55. If I write System.exit(0); at the end of the try block, will the finally block still execute? No. In this case the finally block will not execute because when …
 -  Interview Questions and AnswersJava ProgrammingTechnical Interview Questions and Answers
Java Basics Interview Questions and Answers For Freshers and Experience Part-7
by Sby S49. If I want an object of my class to be thrown as an exception object, what should I do? The class should extend from Exception class. Or you can …
 -  Interview Questions and AnswersJava ProgrammingTechnical Interview Questions and Answers
Java Basics Interview Questions and Answers For Freshers and Experience Part-6
by Sby S37. What is Externalizable interface? Externalizable is an interface which contains two methods readExternal and writeExternal. These methods give you a control over the serialization mechanism. Thus if your class …
 -  Interview Questions and AnswersJava ProgrammingTechnical Interview Questions and Answers
Java Basics Interview Questions and Answers For Freshers and Experience Part-5
by Sby S31. Primitive data types are passed by reference or pass by value? Primitive data types are passed by value. 32. Objects are passed by value or by reference? Java only …
 -  Interview Questions and AnswersJava ProgrammingTechnical Interview Questions and Answers
Java Basics Interview Questions and Answers For Freshers and Experience Part-4
by Sby S25. Does importing a package imports the subpackages as well? Example: Does importing com.MyTest.* also import com.MyTest.UnitTests.*? No you will have to import the subpackages explicitly. Importing com.MyTest.* will import …
 -  Interview Questions and AnswersJava ProgrammingTechnical Interview Questions and Answers
Java Basics Interview Questions and Answers For Freshers and Experience Part-3
by Sby S19. Can an application have multiple classes having main() method? Yes it is possible. While starting the application we mention the class name to be run. The JVM will look …
 -  Interview Questions and AnswersJava ProgrammingTechnical Interview Questions and Answers
Java Basics Interview Questions and Answers For Freshers and Experience Part-2
by Sby S13. What if I write static public void instead of public static void? Program compiles and runs properly. 14. What if I do not provide the String array as the …
 -  Interview Questions and AnswersJavaTechnical Interview Questions and Answers
Core Java Interview Questions and Answers For Freshers and Experience Part-22
by Sby S27. How does Java handle integer overflows and underflows? It uses those low order bytes of the result that can fit into the size of the type allowed by the …