Multiple choice technology programming languages

. Is it true that all tags have a parent tag,which is null for top-level tags, and is the innermost containing tag for nested tags.

  1. 1) yes

  2. 2) no

  3. 3) only the second part of the statement is true.

  4. 3) only the first part of the statement is true.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In JSP custom tags, the getParent() method of a Tag handler returns its parent tag. For top-level tags, it returns null, and for nested tags, it returns the innermost enclosing tag handler instance.