A Bean is essentially a java class, so the public class name and file name must be the same B <jsp:useBean> declares a bean, not a reference, see the description here C Yes, a bean is a type of java class , the file name suffix of the java class is java D Any is definitely wrong. If you put it on someone else’s computer, you can’t quote it, at least not directly
This kind of question is really boring. It's either wordy or vague. I guess the person who asked the question is also half-assed.
What is the class name defined by Bean? Can Bean define a class?
It seems to be correct, but the premise is that the corresponding java class must be in the class path, but does this have anything to do with java beans?
The file suffix is just an appearance. What if I change .class to .java and then use classLoader to load the file?
If I write a custom ClassLoader and scan all directories, won’t the beans be loaded in? What is referencing a bean file?
A Bean is essentially a java class, so the public class name and file name must be the same
B <jsp:useBean> declares a bean, not a reference, see the description here
C Yes, a bean is a type of java class , the file name suffix of the java class is
java
D Any is definitely wrong. If you put it on someone else’s computer, you can’t quote it, at least not directly
This kind of question is really boring. It's either wordy or vague. I guess the person who asked the question is also half-assed.
What is the class name defined by Bean? Can Bean define a class?
It seems to be correct, but the premise is that the corresponding java class must be in the class path, but does this have anything to do with java beans?
The file suffix is just an appearance. What if I change .class to .java and then use classLoader to load the file?
If I write a custom ClassLoader and scan all directories, won’t the beans be loaded in? What is referencing a bean file?
Don’t worry too much when you encounter a question with unclear language. The person who asked the question didn’t even understand it himself...