Public final static Boolean FALSE=new Boolean(false);
Public final static Boolean TRUE=new Boolean(true);
what is the meaning of above two statements?
sridhar123
0
Newbie Poster
Recommended Answers
Jump to PostPublic final static Boolean FALSE=new Boolean(false);
Public final static Boolean TRUE=new Boolean(true);
what is the meaning of above two statements?There should be more code to go with this, otherwise it's pretty hard to tell what you are trying to accomplish.
I'm also not quite sure why someone would …
Jump to PostThese two statements create two constants TRUE and FALSE (Java constants are captialised by convention). These constants are members of the Boolean class, with values true and false respectively.
Back in the old days befor Java 1.5 the compiler would not convert automatically between Boolean (the class) members and boolean …
All 7 Replies
KirkPatrick
28
Junior Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
KirkPatrick
28
Junior Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
mrnutty
761
Senior Poster
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.