Juan Carlos Oidor Gonzalez

Greenhorn
+ Follow
since Feb 17, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Juan Carlos Oidor Gonzalez

Hi, can someone help to me to choose a tool (IDE) to develop JSP and servlest?, fast and easy, i have seen CodeCharge, it looks like fine, but i�d like to know your opinion, i develop small and medium site, thanks
19 years ago
Hi, i�m new in j2ee, i must choose between .net and j2ee, i read, read again about both tech, well, i have found that j2ee does not support SOAP, i think that SOAP is more standard that IIOP, am i wrong? does j2ee support SOAP? (i didn�t find info about it in j2ee), in addition, why j2ee does not follow the UDDI�s recomendations, is it? please can u help me?
thank you for your time.
Hello, I need that my application run in background, but it can obtain the focus (be the active window) of system in ms windows after 2 or 5 minutes, How can I do it?
BTW, some good tool to build gui with swing vb-style? (no commercial, if is possible, i need to teach)
Thanks in advance
20 years ago
Hello
look this question:
Which of the following statements are true?
1 An inner class may be declared private
2 An inner class may be declared static
3 An inner class defined in a method should always be anonymous
4 An inner class defined in a method can access all the method local variables
5 Construction of an inner class may require an instance of the outer class

Answer and Exp : 1, 2, and 5 are correct. Inner classes may be defined with any accessibility, so private is entirely acceptable and 1 is correct. Similarly, the static modifier is permitted on an inner class, which causes it not to be associated with any particularinstance of the outer class. This means that 2 is also correct. Inner classes defined in methods may be anonymous--and indeed often are--but this is not required, so 3 is wrong.4 is wrong because it is not possible for an inner class defined in a method to access the local variables of the method,except for those variables that are marked as final. Constructing an instance of a static inner class does
not need an instance of the enclosing object, but all non-static inner classes do require such a reference, n that reference must be available to the new operation.The reference to the enclosing object is commonly implied as this, which is why it is commonly not explicit. These points make 5 true.
But J2SE specification says:
"An inner class is a nested class that is not explicitly or implicitly declared static. "
"Inner classes include local, anonymous and non-static member classes "
So 2 is INCORRECT or no?
I guess that the exam uses the terms: Top-level nested classes and interfaces to refer to static members inside a class. And an inner class like instance members of others class.So a inner class can never be declared static, but a nested class must be declared static.
am I wrong or An inner class may be declared static? TO THE EXAM WHAT IS CORRECT? explain pls.