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
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)
basic doubt
Sweta Pillai
Greenhorn
Posts: 28
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
class Class{ int a=67; //OK int b; Class(){} b=67; //no forward reference as b is declared first //Compiler error: Syntax error on token "b", //VariableDeclaratorId expected after this token }
why I am not able to assign the value of b ?
Manfred Klug
Ranch Hand
Posts: 377
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi Sweta,
Have a look at the following
discussion
.
Jesper de Jong
Java Cowboy
Posts: 16084
88
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Please don't post the same question twice; I'm locking this one.
Continue discussion in
your other thread
.
Jesper's Blog
-
Pluralsight Author Page
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Stack Problem
Accessing Interface Variables ?
error in following code
Scanner class
References and casting
More...