Saved Bookmarks
| 1. |
4. Find the errors in following functiondefinitions :(a) def main()print ("hello")(6) def func2() :print (2 + 3)(c) def compute():print (x * x)(d) square (a)return a * acould u solve this?????? |
|
Answer» Answer: a)Correction : void main() System.out.println("hello"); B)Correction: void func2() System.out.println(2+3): c)Correction: void computer() System.out.println(x*x); d) Correction: return a*a;
|
|