Computer Science, asked by vaib2334, 7 months ago

what is the default visibility when no visibility modifier is used in Java program?

(A) Package (B) Private (C)Protected (D) Public​

Answers

Answered by jatinoiliva
1

Answer:

public

Explanation:

mark me as brainlist follow me please ❣️ ❣️❣️❣️

Answered by mahi7419
1

Answer:

In java we have four access modifiers: 1. default 2. private 3. protected ... No other class outside this package can access this class. ... int addTwoNumbers(int a, int b){ return a+b; } }.

Explanation:

Hope it's helpful for you

Similar questions