Skip to content

Commit 74d6eaa

Browse files
authored
packages in Java
1 parent a9e8236 commit 74d6eaa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

section9/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Using the import statement in Java is essential for managing packages and access
9090
Access modifiers in Java are keywords used to specify the accessibility of classes, methods, and fields. They control the level of visibility and accessibility to other classes and packages. Understanding access modifiers is crucial for encapsulation and maintaining the integrity of your codebase.
9191

9292
### Access Modifiers for Fields
93-
** public :** Fields declared as public are accessible from any other class.
93+
**public :** Fields declared as public are accessible from any other class.
9494

9595
```java
9696
public class MyClass {
@@ -110,7 +110,7 @@ public class MyClass {
110110
protected int protectedField;
111111
}
112112
```
113-
** default (no modifier) :** Fields with no explicit modifier are accessible within the same package.
113+
**default (no modifier) :** Fields with no explicit modifier are accessible within the same package.
114114

115115
```java
116116
public class MyClass {

0 commit comments

Comments
 (0)