Skip to main content

Posts

What is Error, Bug and Defec ?

What is Error, Bug and Defect in software testing ? Error :- When developer compile a program and program compilation is failed due to some syntax problem or not used correct logic, is called an Error.  For example:-  public class  { public static void main( string []args) { s.o.p(" hello") } } Now after running this program, we will get an error because there is syntax issues as we haven't use correct syntax to print output. Bug : Bug is something that is not producing expected output or something is not behaving as expected.  For example- Developer develop a program to add two number and that program is running fine but producing wrong result. public class  { public static void main( string []args) { int a=3; int b=2; int s= ++a+b; System.out.println(" hello"); } } Actual output: 6 Expected outpit: 5 So here system is not producing expected output after adding two number. In simple term, whe...

Delete command in SQL

How to use DELETE Command in SQL In this post, you will learn how to use DELETE command in SQL. DELETE command is used to DELETE record in table. DELETE command is always used with WHERE clause. If you don't use WHERE Clause, all record will be DELETE in table so while using DELETE command, you must be carefull. Syntax of DELETE command: DELETE From Table_Name  WHERE Column_Name='Values' ; Suppose we have source table:  Emp_ID Emp_Name Emp_Age Emp_Salay 1 Mohan 25 25000 2 Rakesh 25 25000 3 Ram 25 25000 Now i'm going to update Emp_Name: Mohan to "Mahesh". Now use below code to Update existing record DELETE FROM EMP  WHERE Emp_ID=3; Now after executing this code, you will get below results: Emp_ID Emp_Name Emp_Age Emp_Salay 1 Mohesh 30 25000 2 Rakesh 25 25000

Smoke Testing vs Sanity Testing

Smoke Testing vs Sanity Testing Smoke Testing:  It is a kind of general testing where you check the software if all the critical functions are working fine or not. You don’t get into the detail testing of any module when you are doing the smoke testing. Sanity Testing: If you make some changes in the code/ Functionality, You always feel a need to test again if the code or the module in which we made any kind of change is still working fine or not that testing is known as sanity testing. It is non scripted kind of testing; You don’t document it. It will check a specific component in which made change, On the other hand smoke is not specific one. Smoke testing is general check up and  Sanity is specialized check up. A Daily Life Example:- Suppose a doctor make general health checkup of a newborn baby that’s a smoke testing He will generally on the Abstract level check everything. During that testing doctor finds something wrong with his...

Important Facts about main() in Java

4 Important Facts about main() in Java. 1. A main() method is an entry point for a java program. 2. main() would be called by the JVM using the class directly without creating an object. That’s why we declare the main method ‘public’ and static. 3. main() would never return any value, so we kept return type void. 4. main() would take parameters in the form of String Array. Which would be used to passing input values at runtime. Thanks for reading, please like and follow my page to serve you better.