-
Understand the recursion ?
Recursion is a powerful concept in programming, but it can be confusing when you encounter more complex problems. Let’s break it down step by step: 1. What is Recursion? Recursion is a technique in programming where a function calls itself to solve a smaller instance of the same problem. In essence, it’s solving a problem… — read more
-
Try and Catch in Java – Exception handling
Whenever we run the java code, we know that it might be possible that there may be some error or exception; this error can be due to any reason like coding error by developer, wrong input error. JVM usually stop the code execution while such type of error occurred and throw the exception. So if… — read more
-
What is TestNG ? Learn about the different type of annotations in TestNG ?
While writing the test cases for automation we need to tell to TestNG that which test needs to run; So for this we need to give the annotations @Test before the test method which tells TestNG to run that test. If you haven’t give this annotation then TestNG will skip that method. TestNG has different… — read more
-
Why java need main() method in java main class ?
So when we are running any java program then JVM need an entry point to start the execution, so main() method signature is hardcoded in JVM which tells JVM that it is the starting point. You can compile java classes without using main() method but a standalone java application can’t run without main() method. — read more
-
How TestNG works without main method in java ?
While we are running standalone java class then we are required to create an entry point to execute the program, so that is why java needs main method to find out that entry point, but for TestNG it works with annotations so TestNG required the annotations (i.e. @Test, @BeforeTest etc) as entry point to execute… — read more