![]() Related Questions Latest Answer : syncronized - key word used for maintain consistence state of common resource like a file, an array, a variable ,etc when many thread share among them. in java this is syncronization implemented in two ways 1. synchrnization method 2. ... public: public keyword is an access speciferstatic :allows main to be call without any instance of a timevoid: does not return any valuemain: main() is the method where java Applications beginSting args[] View Question | Asked by : nirmala A) FalseB) True Latest Answer : False. The word synchronized can also be used to make a block of code synchronized.Eg: synchronized(object) { ............code........... }Raghu. ... Which of the following is true?1) wait(),notify(),notifyall() are defined as final & can be called only from with in a synchronized method2) Among wait(),notify(),notifyall() the wait() method only throws IOException3) wait(),notify(),notifyall() & sleep() are methods of object class A) 1B) 2 & 3C) 1 & 2D) 1 2 & 3 A) NULLB) sizeofC) friendD) extendsE) synchronized Latest Answer : NULL, extends, and synchronized are keywords in Java ... A) TrueB) False Latest Answer : Answer is TRUE ... Skill/Topic: AWT & AppletsA) extends Latest Answer : yesextends is the keyword for inheritance in java which overrides all the methods and variables in the parent class there reuseablity of code is achieved. ... I have problem with threads implementation in servlets the problem is the servlets which uses instance variablesand if we pass request from two diff servers the o/p generated is mis matching with each other.i have also userd synchronized block but it is not working well(servlet not implementing the single thread model ) Read Answers (1) | Asked by : vishal Latest Answer : Using native keyword, coding from other languages (C++, VC++, C) can be used in Java. ...
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||