What’s the default access specifier for variables and methods of a class?

By ayush goel in 22 Sep 2023 | 11:31 am
ayush goel

ayush goel

Student
Posts: 346
Member since: 21 Sep 2023

What’s the default access specifier for variables and methods of a class?

22 Sep 2023 | 11:31 am
0 Likes
divas goyal

divas goyal

Student
Posts: 453
Member since: 22 Sep 2023

  - The default access specifier for variables and methods in Java is package-private. It means they are accessible only within the same package.

23 Sep 2023 | 04:21 pm
0 Likes

Report

Please describe about the report short and clearly.