what is mean by forward declaration and where we'll use it.
Answer Posted / venkat
A forward declaration looks like the package definition
part but is inside the bode.
e.g.
procedure A is
begin
B;
end A;
procedure B is
begin
null;
end B;
will not work, because during call to B B is still unknown
(1 Step compiler) therefore we need a forward declaration:
procedure B;
procedure A is
begin
B;
end A;
procedure B is
begin
null;
end B;
now we can compile
| Is This Answer Correct ? | 30 Yes | 2 No |
Post New Answer View All Answers
How to sort the rows in sql.
How many sql core licenses do I need?
What is a data manipulation language?
Explain cursor types?
what is the bond code in materialized view?
What is the difference between cluster and non-cluster index?
What is a unique constraint?
What is indexing in sql and its types?
How many columns should be in an index?
Is sql free?
Mention what are different methods to trace the pl/sql code?
What is foreign key in sql with example?
How can you create an empty table from an existing table?
Explain exception handling in pl/sql?
What does bitemporal mean?