Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Programmer Certification (OCPJP)
Question on placement of ;
Ashish Anant Patil
Greenhorn
Posts: 7
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
what does " ;" in middle of program or loop mean?
Jesper de Jong
Java Cowboy
Posts: 16084
88
I like...
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
It's an empty statement, and does nothing.
Can you give a specific code example?
Jesper's Blog
-
Pluralsight Author Page
Ashish Anant Patil
Greenhorn
Posts: 7
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
for(int i=1;i<4;i++)
;
//more code...
Jesper de Jong
Java Cowboy
Posts: 16084
88
I like...
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
That's a loop that lets i increment from 1 to 3, but does nothing in each iteration of the loop. Nobody would write something like that in real code, if they know what they are doing.
Jesper's Blog
-
Pluralsight Author Page
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Keep getting String error in my JSP page
Terminates no endless loop ?
Explanation needed on Break and continue questions
How to make a repetitive URLConnection ?
Funny(deadly) Interview Question
More...