Ganesh Patekar

Saloon Keeper
+ Follow
since Jun 24, 2015
Ganesh likes ...
Eclipse IDE Hibernate jQuery MySQL Database Spring Tomcat Server
Forum Moderator
This soul began to dwell in this body named Ganesh Patekar since 31/07/1987 in Solapur, Maharashtra, India.
Being youngest child in the family had happy childhood but I was also an obstinate kid As days go by I became more amiable.
I had persuaded Bachelors of computer application( BCA, Batch 2007-10 ) from Sinhgad College of Science, Pune. I’m so greedy about learning so couldn’t stop there so persuaded Master of computer application ( MCA ) from Sinhgad Institute of Management, Pune. I used to act as emcee and compare in college events. Those were the best days of life.
I really adore to learn new things. I always eager to write a beautiful code I enjoy visiting natural places near by Pune on weekends.
I’m passionate about maintaining good physic so I do yoga, pranayama and workout regularly because I think, health is wealth.
Pune, Maharashtra, India.
Cows and Likes
Cows
Total received
27
In last 30 days
0
Total given
6
Likes
Total received
140
Received in last 30 days
1
Total given
241
Given in last 30 days
1
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt Green check
Moderation Tools

Recent posts by Ganesh Patekar

Congratulations all of you !!  

And thank you !!
3 weeks ago
Welcome back Daniel Owen Williams !! 
4 weeks ago

Neal Kornreich wrote:Do you know if anonymous classes are on the OCA exam?

I've checked OCAJP8: 1Z0-808 syllabus It's not there but It is mentioned in OCPJP8: 1Z0-809 but as Campbell said you better refer Oracle's official site for such information which is always up to date before taking any exam.
4 weeks ago

Liutauras Vilda wrote:I think nested inner class can access enclosing classes private members

Yes 

not other way round.

No, enclosing class can access private members of inner class.

Also private member of inner class is accessible in another inner class (of same enclosing class) which is already stated in Campbell's JLS quote.
Here is an example

But I might misunderstanding the wording.

Yes It is all about wording that's why hats off to those who document JLS.
4 weeks ago
Don't forget to add your name to OCAJP Wall of Fame
4 weeks ago
Congratulations !! That's good score 
4 weeks ago

Stephan van Hulst wrote:an enclosing class can access private members of a nested class.

Agreed I was wrong. I didn't think of private members declared in inner class.
4 weeks ago
Congratulations Mario Aguero,

and welcome to CodeRanch !! 
4 weeks ago
Welcome to CodeRanch !! 
4 weeks ago

Junilu Lacar wrote:I think the book is referring to the switch part, not the case selectors.

Agreed since the book clearly explains The values in each case statement must be compile-time constant values of the same data type as the switch value under the heading of Compile-time Constant values.
1 month ago

Stephan van Hulst wrote:An overview:
private: Only code within the same source file can access the member.

I don't think so since a source file (a .java file) can have code of another class which doesn't have access to the private member of another class defined in the same source file.
Test.java (a source file)

Rather I would say private members are directly accessed only within the class they are declared in.
1 month ago
Welcome to CodeRanch !! 

Please don't create multiple threads for a question. I've locked this thread so continue further discussion on previously created thread  https://coderanch.com/t/689762/java/specific-parts-Synthesizer-code-run

Since you're new user here I request you please go through Patience Is A Virtue<--- click here
1 month ago
I don't have the book but I think It is already added in errata list. Click here OCPJP 8 Sybex Errata List to see errata list