Cory Kaos

Greenhorn
+ Follow
since Mar 28, 2001
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 Cory Kaos

I have been tasked by a client to upgrade a web-based solution from JDK 1.1 to JDK 1.3. The current implementation utilizes AWT GUI components within the applets and we would like to move to Swing, but the client has questions about performance and worries about the size of the upgraded JVM. Does anyone have any specific numbers that I can give in this respect?

------------------
Cory Kaos
SCPJ2
22 years ago
I am jumping in feet-first to server-side Java programming and have been charged with upgrading some servlets on a work project.
Two Questions:
1) I have looked over the available texts and tenuously decided on "Core Java Servlets & JSP" by Marty Hall (ISBN 0130893404). Can anyone confirm that this is a worthwhile text?
2) Also, being a complete newbster to servlets, I ran into problems compiling some servlet code that referenced a sun.servlet.http package, specifically the HttpServer class. I am "developing" in JBuilder4 and I did find that this file (ServletServer.java) could be a generated file. However, JB4 can't find the package and I scoured every JAR within a mile to no avail. I am sure I'm missing something elementary that will be cleared up in the first 3 chapters of any servlet book, but would someone entertain the question of where this package can be found?
Thanks in advance......
------------------
Cory Kaos
SCJP2
[This message has been edited by Cory Kaos (edited April 18, 2001).]
22 years ago
I agree with Bill that Java 2 Certification Study Guide by Roberts/Heller/Ernest is good. In addition, if you are interested in learning Java or drilling down into the details of a topic, the Core Java 2 books (2 volumes) by Cay Horstmann and Gary Cornell are excellent. The books are excellently composed and are full of full-program examples of the concepts covered.

[This message has been edited by Cory Kaos (edited March 30, 2001).]

A static inner class will have public visibility if the static
inner class is declared public.
class A
{
public static myInner getit() { return new myInner(); }
public static class myInner
{ ..... }
}
In this case, you could create an instance of this public
static inner class outside of the class definition:
A ma = new A();
A.myInner mc = A.getit();
According to CoreJava2 (J2SE v1.3), myInner must be static
here because it was created in a static method in A. If
the myInner inner class had not been declared static, it
would have presented a compile-time error.
To answer you question, if the static inner class were declared
private in this example, it would have presented a compile-time
error when mc was declared.
Hope this helps.