How could I prove class loading take places only once in Java? Is it a pseudo-proposition?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
According to the Blackwell Dictionary of Western Philosophy, a “pseudo-proposition” is as follows:
If you are using “pseudo-proposition” in this sense, then your proposition is a pseudo-proposition even if we could develop a mathematical proof for it, since according to Wittgenstein all of mathematics is a pseudo-proposition. If is impossible to verify by observation that the proposition “class loading takes place only once” is always true.
But to me, this is only saying that the label “pseudo-proposition” is not a useful one when we are talking about IT topics. And that someone who uses it in this context either doesn’t really understand the term, or is posturing.
I doubt that it is (even) possible to mathematically prove that a class is loaded only once, because you’d have to prove this for any (theoretically) possible class loader. But frankly, who cares! I’m happy to just declare that any class loader that allows a class to be loaded multiple times is broken.
(In fact, if you have multiple class loaders, it is possible to load the same bytecode file once in each class loader. But what you get from the perspective of the Java execution model is different classes with the same name.)