Recursion in JavaIn this tutorial we will see how to do recursion in java, and also see examples of recursion using java.A recursive method in Java is a method that calls itself, and this process is known as recursion. Recursion in java provides a way to break complicated problems down into simple problems which are easier to solve.Recursion although a tricky … [Read more...] about Recursion in Java Example Program | Understanding Recursion in Java
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