Hi I think we can set the priority of main thread using the currentThread() method. i think the usage will be like this Thread.currentThread().setPriority(4); Hope that helps. About ur second question i don;t have the lisghtest idea wat u are asking about.wat r privacy statements??
hey ya there is somethin abt 2 privacy questions to be asked in scjp exam . even i want to know abt it . can anyone whos given scjp throw some light on this??? regards Kamal
posted 18 years ago
Thanx Amit. U were right. The funny thing is ,I had already used this same command elsewhere in the same program, it just didn't strike me ,that it could be used in main. 2 many late nights the past few days studying does this ,I guess. Bout privacy stmts. there r 2 questions in SCJP bout privacy stmts ,I heard. I guess it's something like "these questions should not be told 2 others" etc.etc. Wud definitely like 2 know more from someone. VIKRAM
posted 18 years ago
Hi Vikram , If u come to know more about something on this privacy statement do let me know or just put it on the forum or else mail me. Its ok yaar for me night is when i can do everything smile no one to disturb. Have a nice time Amit ------------------
you can do setPiority. That is o.k. but , the o.s is having their priorities. Thus , it is totally O.S. Dependent. Java's threading model has got 10 priorities. if o.s. has got 5 prorities. then 2 priorities of java threading model will mapped to one priority of o.s. so , behavoiur of setPriority() can not be gauranteed. for NT , you have diff. priority levels , solaris , you have diff. priority levels. Correct me if I am wrong. more infomation about this you can get in " Threading " Discussion Forum.
Hi guys, There are two 'questions' at the beginning of the Sun Exam (the privacy questions you're hearing about). One of them asks you to agree not to reveal the questions to others. If you give a negative response to this question you cannot continue the exam ... the exam session will end and you will need to re-schedule.
Hope that helps. ------------------ Jane Griscti Sun Certified Programmer for the Java� 2 Platform