Core Java Interview Questions and Answers21. What is the use of toString function?The toString function gets automatically inherited in all java classes from the Object class. We can override the toString function. When ever we print an object of a class, by default the toString function of the class gets called. So if we want to give a customizable output when … [Read more...] about Important Core Java Interview Questions and Answers
How to Create Threads in Java Threads can be created in java using two techniques. By implementing the Runnable interface or by extending the Thread class. By implementing the runnable interface. Step 1: Create a child class that implements the runnable interface. Step 2: Provide the working of the thread inside the run method Step 3: Create another class containing the … [Read more...] about How to Create Threads in Java | Multithreading in Java | JavaTutorOnline
Multiple Inheritance in Java is not supportedFor making Java language simple and avoid complexities present in earlier languages like c++, the founder of java(James Gosling) decided that java shouldn’t support Multiple Inheritance.In a white paper titled “Java: an Overview” James Gosling gives an idea on why multiple inheritance is not supported in … [Read more...] about Why Multiple Inheritance in Java not supported?
Ejb1 vs Ejb2 vs Ejb3 Ejb1 had limited functionality just as a lady bug that doesn't do much work still is appreciated by people due to its beauty.Ejb2 was very heavy like the Elephant with functionalities. Still to take proper use of the elephant power it had to be tamed, or Ejb2 was later simplified to Ejb3Ejb3 is very simple having power and is serving the people very … [Read more...] about Ejb1 vs Ejb2 vs Ejb3 | JavaTutorOnline
Ant Java Build Tool Ant is a Java build tool. It is an open source program designed to help develop, and build big programs by automating the work tasks of compiling code, running tests, and Packaging the results for redistribution.It is written completely in Java there by it is platform independent, easy to use, extensible, and scalable. It can be used in a small personal … [Read more...] about Ant Java Build Tool Tutorial | JavaTutorOnline