I have noticed that if don't write public
before a class its works same as like a public class
. I can't understand why so? It should show a error when I don't declare a class as public
, private
or protected
. But it works fine. What is the reason?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
For declarations of classes are avaible only two keywords:
You can use private and protected only if you declare an member inside of a class. Example: