Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6122693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:55:44+00:00 2026-05-23T15:55:44+00:00

Im learning java, coming from python there are quite a few things I don’t

  • 0

Im learning java, coming from python there are quite a few things I don’t fully understand that exist in java and the first of these has to be public and private declarations. I mean from a language that has no real visible public private declarations to a language where everything MUST be private, I understand the ground principle about what they do. Im asking ‘why’ they do it. Why should anyone care who touches there private parts? It shouldn’t really be a problem if your a good programmer you know which bits you ‘should’ and ‘should not’ poke in code. So why the secrecy? Why hide and obscure and make things private from the world? Why care to start with.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:55:44+00:00Added an answer on May 23, 2026 at 3:55 pm

    (Opinionated answer follows.)

    This is because Java is a bondage and discipline language, designed to cater for mediocre programmers. Python, otoh, is a language aimed at consenting adults who agree to expose their objects’ private parts to each other, trusting other programmers not to abuse the undocumented/unguaranteed functionality offered to them. If they do and anything breaks, the person who broke stuff gets to keep the pieces.

    Python does have some access control, such as __all__ to hide/show parts of a module, it’s just that all of it is optional and can be by-passed at the risk of the person doing so.

    (To repeat what I said in the comment: I’m not saying that all Java programmers are mediocre. I’m just saying that the language is designed so that it can safely be used by such programmers.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm learning C++ (coming from java) and recently discovered that you can pass functions
I'm learning ruby dev coming from java and I dont understand why im getting
When I was learning Java coming from a background of some 20 years of
I just started learning C++ (coming from Java ) and am having some serious
Coming from PHP with some Java Struts 2.0 experience any tips/tricks on learning GWT?
I'm learning how to code in Java after after coming from C. In C
I'm just learning c++ coming from a Java background. Just playing around with simple
I'm learning C++ coming from a Java background (knowing a little C from many
I'm learning C# and coming from a Java world, I was a little confused
I'm currently learning ObjC and Cocoa programming, coming from the Java world. To test

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.