TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Java Continue Statement program
Alagunila Meganathan
Aug 02
2016
Code
416
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
Continue.rar
public
class
Continue{
public
static
void
main(String[] args){
Thread t =
new
Thread();
int
a =
0
;
try
{
for
(
int
i=
1
;i<
10
;i++)
{
if
(i ==
5
)
{
continue
;
//control will never reach here (after the continue statement).
//a = i;
}
t.sleep(
1000
);
System.out.println(
"Raja"
);
System.out.println(
"Value of a : "
+ a);
}
}
catch
(InterruptedException e){}
}
}
Java
Continue