inner-classes tag

4 questions


1 answers
77 views
0
What is the difference between an internal class and a static internal class in Java?

What is the main difference between an internal class and a static internal class? Is it just a difference in design design?


1 answers
119 views
0
What is the difference between an inner class and a static nested class in Java?

What is the main difference between an inner class and a static nested class in Java? When designing and implementing, what are the criteria for choosing one of these?

1 years ago

1 answers
66 views
0
I want to know how to use inner class in MyBatis

<select id=testSql parameterType=ParameterInfo resultType=ResultDataInfo> SELECT col1, col2, col3 FROM TEST_TABLE WHERE REG_DATE >= date_add(now(), INTERVAL -1 DAY) AND co1 = #{col1} LIMI...

1 years ago

1 answers
58 views
0
[JAVA] Let me ask you a question about using nested class object declarations in static member methods.

Let me ask you a question about the use of nested classes in the static member method of the class.!public class A { public static void methodA() { BB = new B(); // Error } class B { // // empty }}L...

1 years ago

© 2024 OneMinuteCode. All rights reserved.