Win a copy of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

What are the answers for this,and could you give me the explanation.

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1) How are thread priorities and thread scheduling related?
a. they aren't
b. it depends on the thread-scheduling algorithm used to implement the JVM
c. thread priority is specified when a thread is to be excuted next.
d. thread priority is used to determing the next thread to execute from the waiting thread pool.

2) java_g is used for which of the following?
a. executing a class with optimization turned off.
b. using the jdb tool.
c. compiling the specified source without optimization.
d. a and b.
3) the JVM specification defines the process by which unused memory resources are collected and put onto the heap of resues
a. true
b. false

4) which is not the method of java.lang.Object
a. wait()
b. equals(object)
c. getHashcode()
d. notify()
5) java.lang.Thread utilizes which of the following methods to relinquish the thread instance's processing slot to another thread?
a. sleep()
b. wait()
c. notify()

6) java_w performs which of the following?
a. executes a specified class
b. executes a specified class without window optimization
c. executes a specified class in its own separate window
d. execites a specified class without an associated console window.
 
Trailboss
Posts: 23275
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1) b. Higher priority stuff is usually run first, or gets more CPU time, but it depends on the implementation.
2) What is java_g ?? I didn't see anything about this on the exam.
3) false. Garbage collection might have some rules in the JVM (I don't really know), but the actual implementation can varry a lot.
4) c. Instead of getHashcode(), it's hashcode().
5) a. sleep() is the only method in the list that is a member of Thread.
6) Never heard of java_w

Where are you getting this stuff?

 
Meena
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Iam getting this stuff from different mock exams posted on the web.
Thank you.
 
paul wheaton
Trailboss
Posts: 23275
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
These exams are not providing answers and explanations?
 
You had your fun. Now it's time to go to jail. Thanks for your help tiny ad.
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic