Several problems easily confused by java beginners
•
Java
1. String class and StringBuffer class are both classes that handle strings, but they have one biggest difference, that is. eg1:
4. Instance method, class method and constructor method we usually refer to instance method, just like the function in C language. I don't need to say the specific method. Here I mainly use it to distinguish classification method and constructor method The biggest difference between class methods and instance methods is that in form, class methods have one more static. In usage, class methods can be called directly without creating objects (while instance methods must create objects first and then call through objects). eg:
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码