49. 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 …
Java Programming
- 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-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 AnswersJava ProgrammingTechnical Interview Questions and Answers
Java Basics Interview Questions and Answers For Freshers and Experience Part-1
by Sby S1. What is the difference between a constructor and a method? A constructor is a member function of a class that is used to create objects of that class. It …
- Interview Questions and AnswersJava ProgrammingTechnical Interview Questions and Answers
Java XML Interview Questions and Answers For Freshers Part-3
by Sby S21.What is JDOM Parser? JDOM is an open source, java based library to parse XML document and it is typically java developer friendly API.
- Interview Questions and AnswersJava ProgrammingTechnical Interview Questions and Answers
Java XML Interview Questions and Answers For Freshers Part-2
by Sby S11.What are the advantages of DOM Parsing? The DOM is a common interface for manipulating document structures. One of its design goals is that Java code written for one DOM-compliant …
- Interview Questions and AnswersJava ProgrammingTechnical Interview Questions and Answers
Java XML Interview Questions and Answers For Freshers Part-1
by Sby S1.What XML stands for? XML stands for Extensible Markup Language.