what are the differences between public, private, protected, static, transient, final and volatile? : Sql dba



what are the differences between public, private, protected, static, transient, final and volatile? ..

Answer / Vivekanand Ojha

"These terms are related to access modifiers in Java (not SQL). Here's a brief explanation:n- Public: Accessible from anywhere.n- Private: Only accessible within the same class.n- Protected: Accessible within the same package and subclasses of other packages.n- Static: Belongs to the class, not an object. Can be accessed without creating an instance of the class.n- Transient: Marks a field that should not be serialized (ignored during serialization).n- Final: Cannot be reassigned or overridden.n- Volatile: Informs the JVM to check the value of this variable each time it is accessed."n

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

What is rank () in sql?

1 Answers  


What are indexes, and what are the different types?

3 Answers  


How can we make an if statement within a select statement?

1 Answers  


what is 'trigger' in sql? : Sql dba

1 Answers  


HOW TO ADD PRIMARY KEY TO TABLE BY PL/SQL PROGRAM

3 Answers  


Difference between IN and EXISTS

4 Answers   Nous, Polaris,


Define union, minus, union all, intersect ?

1 Answers  


Which version of sql do I have?

1 Answers  


What is clause in sql?

1 Answers  


What is pl sql package?

1 Answers  


How toimport .dmp file in lower version of oracle from higher version ?

4 Answers   TCS,


How do you take the union of two tables in sql?

1 Answers  


Categories