Labelled Loops

Labelled Loops


                Java has a facility to give labels to a block of statements.
The general form is

label : Looping statement

Where,
                label                            -  valid java variable name
                looping statement – for,do,while

Example

                L1 : while(condition)
                {
                                ----------------
                                ---------------
                }

No comments:

Post a Comment

Creating Objects

Creating Objects                  Creating objects means to allocate memory space for all the instance variables of the objects. S...