• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

technical terms : study & pleasure

 
Ashik Uzzaman
Ranch Hand
Posts: 2373
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi SCJP-aspirants,
When studying for the exam i suggest u note some technical terms for ur future refernce....it'll give u pleasure....
Here r some as questions for u.... i invite u to add further with these few....
(1) What is a crab?
(2) What is tag/taggling interface
(3) What is phantom refernce
By the way, this is 400th post in two months.... i m enjoying....
------------------
Muhammad Ashikuzzaman (Fahim)
Sun Certified Programmer for the Java� 2 Platform
--When you learn something, learn it by heart!
[This message has been edited by Ashik uzzaman (edited September 04, 2001).]
 
Jim Petersen
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ashik
Congrats on the big 400!
The 'crab' ( ; ; ) will create an inifite loop. Leaving out a particular condition of a loop construct signifies that the condition is true ie
for ( ; ; ) AshikLoves.JavaRanch() // always true
rgds Jim
[This message has been edited by Thomas Paul (edited September 04, 2001).]
 
Jim Petersen
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
will create an inifite loop. Leaving out a particular condition of a loop construct signifies that the condition is true ie


[This message has been edited by Thomas Paul (edited September 04, 2001).]
 
Ashik Uzzaman
Ranch Hand
Posts: 2373
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thnx Jim. Have some others....
(4) What is a Java Sandbox?
(5) What is green thread?
(6) What is a signed applet?

------------------
Muhammad Ashikuzzaman (Fahim)
Sun Certified Programmer for the Java� 2 Platform
--When you learn something, learn it by heart!
 
Gagan Indus
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
one more ,
shallow comparision ( == ) n deep comparision ( .equals() )
shallow copy ( clone() ) n deep copying
n Congrats on da big 400 , i guess they shld think of promoting u now , may be sherrif ,( or may be bartender itself , coz u r so gud at offering drinks )
n when gonna u explain phantom reference n tag interface ? waiting...
------------------
Gagan (/^_^\)
 
Ashik Uzzaman
Ranch Hand
Posts: 2373
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thnx Gagan, being a bartender will let me drink free of cost...
Now first answer 2 -- tag/taggling interface...this is that interface which do not have any method prototype declaration. Like ---
interface tagInterface
{
// no method declaration
}
------------------
Muhammad Ashikuzzaman (Fahim)
Sun Certified Programmer for the Java� 2 Platform
--When you learn something, learn it by heart!
 
Jim Petersen
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ashik uzzaman:
Thnx Jim. Have some others....
(4) What is a Java Sandbox?
(5) What is green thread?
(6) What is a signed applet?


Hi Ashik
Since im studying threads at the moment the Green Thread Questions is a nice diversion
A Green Thread is the default thread of JDK. This contrasts with native threads which are provided by the underlying (native) OS eg Solaris. Its accepted that native threads have several advantages over green threads ie scheduling on parallel processors for increased performance, calling native (C) libraries, and less of the overhead inefficiencies associated in IO calls that are necessary with a green thread.
Shame Green Threads won't be in the exam!
PS got this of Suns Question of the week its a great resource and helps build a knowledge base
http://developer.java.sun.com/developer/qow/archive/index.html
rgds Jim
 
Jose Botella
Ranch Hand
Posts: 2120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A phantom reference is an instance of java.lang.ref.PhantomReference
it holds a reference to an object "the referent"
The phanton reference does not prevent the g.c. from executing the referent finalize method if there isn't any other kind of references pointing to the referent.
They are used for providing a more subtle and safe way of executing pre-mortem action than with finalize.
At least this was the theory.
I think the advantages of using a phantom reference are : the pre-mortem actions are not executed by the g.c. thread but by the program. The execution of the finalize methods is not certain, so this an advantage. It is more safe because the referent of a phantom object can not be resurrect, so the finalize method is not going to enlength the life of an object.
Is this last paragraph true ? is there something missing?
There are some examples of the use of reference objects here
http://forum.java.sun.com/thread.jsp?forum=37&thread=163657
The last example is the most intersting.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic