CodeGym /Courses /New Java Syntax /Additional lessons for Level

Additional lessons for Level

New Java Syntax
Level 7 , Lesson 8
Available

In this level, you learned how to create your own methods and pass arguments to them. We also figured out what these public, protected, and private keywords mean before each method.

Everything seems clear and understandable enough, but if you have a desire to dig a little deeper in order to avoid confusion in the future, use this supplementary article: Access modifiers: private, protected, default, public.


7
Survey/quiz
Methods, level 7, lesson 8
Unavailable
Methods
Methods
Comments (6)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
atb2199 Level 19, United Kingdom, United Kingdom
1 September 2022
Remember, a variable must start with a letter, _, or & ;)
NonEuclid Level 20, Zurich, Switzerland
24 August 2022
Could you please add the correct solution when a question is wrong?
manny9876 Level 36, Israel
15 October 2022
I have the same request. Thanks!
Abhishek Tripathi Level 72, Rewa, India Expert
24 December 2023
I'm doing it but use it only for knowledge not for cheating:- 1. int doWork() 2. in a class. 3. void 4. print(int a, int b) 5. int min(int a, int b) 6. return x; 7. internal 8. public static void main(String[] args) 9. final 10. 1a (Because a name in java can not start with a number)
Jimmy Level 28, Lausanne, Switzerland
14 April 2025
I think they're trying to get us to find out for ourselves. One must have this ability to work as a programmer. I used to give up, now I try to keep going.
Hoist Level 5, San Diego, United States
5 January 2022
Decent quiz on understanding the basic structures of methods --- know the fundamentals cold