English 中文(简体)
1. 进口货物和底土以及进口总量
原标题:Upsides and downsides of importing specifically and importing overally
  • 时间:2011-06-21 06:27:33
  •  标签:
  • java

我注意到人们倾向于进口<代码>javax.swing。 JFrame und javax.swing.*, import java.math.BigInteger und javamath.*. 进口整个包裹是否有任何下降,而不是具体进口,或者是否有任何进口的进口?

最佳回答

通常,单类进口更可取,因为单类进口很容易估算出哪类进口。 随着现代的民主选举,它非常容易。 因此,它常常被视为一种好风格。 包装和单类进口之间没有差别。

问题回答

只有一个点 我对一揽子进口产品的理解是,如果在一揽子方案中增加这些类别,它们会造成问题,从而造成模糊。 同jdk 1.1在java.awt包裹中仅包含一个清单类别,jdk1.2在java.util包中引入另一个清单类别。

无。 。 http://www.java Performancetuning.com/news/qotm031.shtml” rel=“nofollow noreferer”here和rel=“nofollow noreferer”>here (你可能找到更好的来源,但这是一种1分钟的谷歌练)。


这似乎还重复了。 问题

You might notice a slower compilation time when you do wildcard import, this is because all classes would be loaded by the compiler at compile time. But it has no effect to the runtime performance.





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签