Advertisement
Guest User

Coursework

a guest
Mar 11th, 2022
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. 6 Errors
  2. 6.1 syntax error
  3. Java syntax errors are faults in a programmer's implementation of the Java programming language's grammar. It does not cover flaws in the program's logic. Java has its own syntax, as do all other programming languages. A semicolon must be used at the conclusion of every command in Java, for example (;). (demand73164, 2002)
  4.  
  5. Error in the program:
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19. Error correction:
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32. 6.2 semantic error
  33.  
  34. Because the Java system has no understanding what your software is supposed to perform, it doesn't provide any more information to assist you in locating the problem. Semantic Errors are another name for logical errors. These faults are created by a programmer's wrong thought or concept when coding. (geeksforgeeks, n.d.)
  35.  
  36. Error detection:
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60. Error correction:
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86. 6.3 logical error
  87.  
  88. Java code compilation error: Java code compilation error: Error in logic: When your software compiles and runs, but does something wrong or provides an inaccurate result or no output when it should, you have a logic error. Neither the compiler nor the JVM can detect these mistakes. (geeksforgeeks, n.d.)
  89.  
  90. Error detection:
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102. Error correction:
  103.  
  104.  
  105.  
  106.  
  107. 7 conclusion
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement