Skip navigation.
Home

java keyword

I need to understand some of java keyword and how to work

The finalize() Method.

The volatile Modifier;

The transient Modifier

The synchronized Modifier

Hey, I think that you can

Hey,

I think that you can utilize the time while you are waiting for a reply by searching the Internet for the answers you want, or you can go and buy a good book  about Java and also you' ll find the answers in it :)

myBlog

I dont need the smart replay as that

Thank u for your replay i get my Q when i read a good book and i dont understand this subject......plz i dont need the smart replay as that

Hi,1- finalize() method

Hi,

1- finalize() method (keywords: finalize method +java):

http://tns-www.lcs.mit.edu/manuals/java-tutorial/java/javaOO/finalize.html

2-  volatile keyword (keywords: volatile +java):

http://www.javaperformancetuning.com/news/qotm030.shtml

3-  transient keyword (keywords: transient +java):

http://scv.bu.edu/Doc/Java/tutorial/java/javaOO/transient.html

4- synchronized keyword (keywords: synchronized +java): 

http://www.janeg.ca/scjp/threads/synchronized.html

 

I swear it didnt took me 2 minutes to find what you want, try to search "http://www.google.com" before you post a new thread and thanks for calling my replys smart :)
myBlog

thank u becouse i dont know

thank u becouse i dont know the google is search engine and i can make search and thank u becouse spend 2 minutes to make search

can u tell me what u know about my Q another use search engine?

Note: What is  purpose for the fourm if any one can make search

when some one ask he need answer not how can make search 

 

Well...

Hi again,

Well from my point of view the purpose of a LUG  is to form a Java User community and make this community communicate with each, share ideas, hacks "dont take it literally", the available and new Java technologies, and solve problems some of us might face in a project or in a peace of code that it doesnt work as it is supposed to be. Not for teaching the basics of a language (Java's basics are very easy to learn and self explanatory, and there are millions of books, articles, and tutorials that explain every aspect in Java). Every programmer (even normal end-user) must know how to search, in my last reply I showed you the keywords I used for searching and I think that they were very simple.

I hope that I ve answered your question and by the way what is the meaning of

can u tell me what u know about my Q another use search engine?

really because I dont understand it "may be I am not that smart guy :)"

myBlog

I like to tell me  what u

I like to tell me  what u know about :

The finalize() Method.

 

The volatile Modifier;

 

The transient Modifier

 

The synchronized Modifier

and tell me if u use it in your work and give me the

example.

mmm

sorry in my last post I meant JUG not LUG "I think Linux is dominating my thoughts". And for the ..

tell me if u use it in your work and give me the

example.

I dont know what to say really I dont I am speechless, Its pointless to continue posting replies and the only final words I want to tell you that the links I provided to you is more than enough to get you started..

myBlog

El slamo 3lekomI wish if my

El slamo 3lekom I wish if my point is clear and wait for who want to help and give the Real example from his experience.

To Put an End to this Discussion.

1. Finalize() is too some extent like C++ destructore method which are used to release resources.

2.  Volatile Modifier:
following this http://forum.java.sun.com/ann.jspa?annID=9
will give you idea about what volatile is and what does it used for.
[So what can volatile variables be used for? Volatile variables can be used to...... ]

 3. Synchronized Modifier:
as written in forum.java.sun.com
synchronized method or block acquires the monitor lock of a given object and so provides mutually exclusive access to all sections of code that are guarded by the same monitor lock.

For synchronized code, anything that happens in one thread prior to the release of a monitor lock happens-before the subsequent acquisition of that same monitor lock in another thread - hence the second thread is guaranteed to "see" all changes made by the first thread.

4. Transient Modifier:
The value of transient variable will not be serialized. to understand this you need to read about serialization and deserialization.

I hope this helps. 

Ali Abdel-Aziz Ali
Software Engineer/OpenCraft
www.aliabdelaziz.com
 

gzak lah kol 7'er

gzak lah kol 7'er