English 中文(简体)
在 java 中的第一类对象 [复制]
原标题:First Class Objects in java [duplicate]
This question already has answers here:
Closed 11 years ago.

Possible Duplicate:
What are first-class objects in Java and C#?

现在我听说在 Java 中的头等物体是未使用像 String 这样的新关键字创建的物体

Now we declare Arrays also without without new keyword ? so are they first class So i got this article http://c2.com/cgi/wiki?JavaArraysShouldBeFirstClassObjects

Now another interesting article i found is http://c2.com/cgi/wiki?JavaExceptionsAreFirstClassObjects so are exceptions first class objects ??

So can anyone please define a first class object in simple manner & tell me all the First Class objects in java


EDIT:

Before marking as possible duplicate please read the question carefully Let me put it in short My question is

1.Are arrays and Exceptions first class objects ? and 2.Can you define First class objects (interview type) ?

问题回答

< a href=> "" "http://c2.com/cgi/wiki?"? FirstClass" rel= "nofollow" > link 在同一网站 是否只是覆盖了它? 记住“ 一等对象”不是任何规格定义的东西,而是不同背景的不同含义。 c2. com 网站定义了它本身的含义, 但您提到的其他例子却用不同的含义来使用它。 它混淆了您, 因为您是用来比较苹果和橙子的。





相关问题
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 ...

热门标签