12. Cylomatic Complexity Cyclomatic complexity for addClass() Statement C# Java If…Else 0 0 Select…Case 0 0 For… 0 0 Do…While 1 1 For each… 0 0 Total Complexity 2 2 Results C# Java CC 2 2 Bad Fix Probability %5 %5 Risk Low Low Type of procedure A simple procedure A simple procedure Conclusion The CC results are stable.
13. Cyclomatic Complexity Cyclomatic complexity for addForm() Statement C# Java If…Else 16 18 Select…Case 0 0 For… 0 0 Do…While 0 0 For each… 0 0 Total Complexity 17 19 Results C# Java CC 17 19 Bad Fix Probability %10 %10 Risk Moderate Moderate Type of procedure A more complex procedure A more complex procedure Conclusion In C# language each event has their on method. Therefore Java uses only specific methods to the specific event. The event mechanism in java handled by if statement in the specific events methods by getting source of the objects name.