摘要:
What is the difference between method overloading and method overriding in Java? Differences between method overloading and overriding are: Method ove 阅读全文
摘要:
java 中 静态块的作用 (一)java 静态代码块 静态方法区别一般情况下,如果有些代码必须在项目启动的时候就执行的时候,需要使用静态代码块,这种代码是主动执行的;需要在项目启动的时候就初始化,在不创建对象的情况下,其他程序来调用的时候,需要使用静态方法,这种代码是被动执行的. 静态方法在类加载 阅读全文
摘要:
Why there are no pointers in Java? In Java there are references instead of pointers. These references point to objects in memory. But there is no dire 阅读全文
摘要:
How aggregation and composition are different concepts? In OOPS, Aggregation and Composition are the types of association relations. A composition is 阅读全文
摘要:
Main principles of Object Oriented Programming (OOPS) are: Abstraction Encapsulation Inheritance Polymorphism 阅读全文