Assume that you are applying “testing” and “inspection”, the two defect finding methods in the following buggy code example to find defects. Explain how “testing” and “inspection” differ in finding defects quickly and the efforts required for the example. public class Employee { private String id; private int name; private double salary; public Employee(String id,int name,double salary) { } public Employee() { } } Public class Customer { public static void main(String s[]) { Employee e1=new Employee(“10060OTU”, “S1”, 2000.50); Employee e2=new Employee(); System.out.println (“The salary of Employee S1 is”+ e1.salary); }
Assume that you are applying “testing” and “inspection”, the two defect finding methods in the following buggy code example to find defects. Explain how “testing” and “inspection” differ in finding defects quickly and the efforts required for the example.
public class Employee
{
private String id;
private int name;
private double salary;
public Employee(String id,int name,double salary)
{
}
public Employee()
{
}
}
Public class Customer
{
public static void main(String s[])
{
Employee e1=new Employee(“10060OTU”, “S1”, 2000.50);
Employee e2=new Employee();
System.out.println (“The salary of Employee S1 is”+ e1.salary);
}
Step by step
Solved in 2 steps