Accenture Primer
Accenture DumpeasyAccenture PrimerAccenture-Primer-Dump

does the special group or group 0 is included while coupling groups using the groupCount in java.

Answer options

A
True
B
False

Correct answer: False

Explanation

Java's Matcher.groupCount() returns the number of capturing groups in the pattern, explicitly excluding group 0 (which represents the entire match). So group 0 is NOT included.

Related Accenture Accenture Primer questions

Practice more Accenture Accenture Primer questions

PrimerDumps has 1400+ primer questions, 2026 mocks and coding hands-on — all free.