what is difference b/w pravite procedures and public
procedures?

Answers were Sorted based on User's Feedback



what is difference b/w pravite procedures and public procedures?..

Answer / a g srikanth

Any procedure that is declared and defined ONLY in the
package body is a private procedure. This procedure is
local to the package and other procs cannot call any
private procedure.

On the other hand if the procedure is defined in the
package specification and defined in the package body it is
a public procedure, this is accessible to other procs also.

Is This Answer Correct ?    30 Yes 1 No

what is difference b/w pravite procedures and public procedures?..

Answer / siva

If the procedure is with in the package it is the public
procedure,other wise it is private procedure.

Is This Answer Correct ?    18 Yes 8 No

what is difference b/w pravite procedures and public procedures?..

Answer / swati sucharita

private procedure is used before class name.if we have
declared private before class name then subclass cannot
inherit the properties of private class.
public procedure is used before class name,if we have
declared public before class name then all other class can
inherit the properties of public class.

Is This Answer Correct ?    3 Yes 5 No

Post New Answer

More SQL PLSQL Interview Questions

What is a pdo connection?

0 Answers  


How many LONG columns are allowed in a table?

6 Answers   CTS,


What is difference between sql function and stored procedure?

0 Answers  


I have a package in which a table was used in a procedure and compiled later i have dropped the table used in the package what would be the status of package specification and body

1 Answers   TCS,


How do you copy a table in sql?

0 Answers  






Can a key be both primary and foreign?

0 Answers  


how to shutdown mysql server? : Sql dba

0 Answers  


I have a tablle like this: cust acc ----------- a 1 b 2 b 3 c 4 c 5 c 6 I Want below o/p: cust acc --------------- a 1 b 2|3 c 4|5|6 Please any one can you have any ideas share me. I have urgent requirement.

7 Answers   MTS,


What is a natural join sql?

0 Answers  


How does sql profiler work?

0 Answers  


How can the performance of a trigger be improved?

0 Answers  


What is the basic difference between a sql and stored procedure ?

2 Answers   L&T,


Categories