All Matches
Solution Library
Expert Answer
Textbooks
Search Textbook questions, tutors and Books
Oops, something went wrong!
Change your search query and then try again
Toggle navigation
FREE Trial
S
Books
FREE
Tutors
Study Help
Expert Questions
Accounting
General Management
Mathematics
Finance
Organizational Behaviour
Law
Physics
Operating System
Management Leadership
Sociology
Programming
Marketing
Database
Computer Network
Economics
Textbooks Solutions
Accounting
Managerial Accounting
Management Leadership
Cost Accounting
Statistics
Business Law
Corporate Finance
Finance
Economics
Auditing
Ask a Question
Search
Search
Sign In
Register
study help
computer science
advanced java programming
Questions and Answers of
Advanced Java Programming
Is it possible to create new thread by calling its run() method directly? If not, why?
Deadlock is a situation when ___________.(a) Two or more threads have circular dependency on an object(b) Two or more threads are trying to access the same object(c) Two or more threads are
Write some common problems that may arise in multi-threading environment?
Which of these statements is incorrect?(a) Two threads in Java can have same priority.(b) By multithreading CPU’s idle time is minimized, and we can take maximum use of it.(c) By multitasking
What is the difference when the synchronized keyword is applied to a static method or to a nonstatic method?
Which of the following interfaces is used to create a thread(a) Startable(b) Runnable(c) Executable(d) Thread
What is difference between notify() and notifyAll()?
Which of the following methods contains the body of the thread?(a) Run()(b) Start()(c) Stop()(d) Main()
What happens when start() is called?
Which of the following classes or interfaces defines the wait(), notify(),and notifyAll() methods?(a) Thread(b) Runnable(c) Object(d) Class
What is main thread? When is it created?
Which of the following methods is used to change the priority of a thread?(a) SetPriority()(b) ChangePriority()(c) NewPriority()(d) UpdatePriority()
Briefly describe how Java implements synchronization.
How many locks does an object have?(a) 1(b) 2(c) 3(d) 4
Consider the following classWhich of the following will create and start this thread?(a) New Runnable(MyClass).start();(b) New Thread(MyClass).run();(c) New Thread(new MyClass()).start();(d) New
A dead thread(a) Is discarded(b) Must wait until all other threads execute before it is restarted(c) Cannot be restarted(d) Is synchronized
When is the object B in the following code eligible for garbage collection?(a) After line 5(b) After line 6(c) After line 7(d) There is no way to be absolutely certain. void start () { A a new A();
What happens if an unchecked exception is thrown from a try block and there is no matching catch block?(a) The program ignores the exception.(b) The program terminates immediately.(c) The method
Where will be the most chance of the garbage collector being invoked?(a) After line 9(b) After line 10(c) After line 11(d) Garbage collector never invoked in methodA() class HappyGarbage01 { public
Why are two survior spaces maintained in young generation by HotSpot?
At what point is the Bar object, created on line 6, eligible for garbage collection?(a) After line 8(b) After line 9(c) After line 4, when f() completes(d) After line 10 class Test { String f() {
How do you identify minor and major garbage collection in Java?
What is the structure of Java Heap? What is Perm Gen space in Heap?
Which operator is used by Java run time implementations to free the memory of an object when it is no longer needed?(a) Delete(b) Free(c) New(d) None of the mentioned
How do you find GC resulted due to calling System.gc()?
Which function is used to perform some action when the object is to be destroyed?(a) Finalize()(b) Delete()(c) Main()(d) None of the mentioned
Showing 1200 - 1300
of 1226
1
2
3
4
5
6
7
8
9
10
11
12
13