No, continue statement can only be used within the loops only, it can be any loop while, do while or for. If we use continue statement without using loop , there will be a compiler error "misplaced continue".
Your comment on this answer:
Related questions
Doubtly is an online community for engineering students, offering: