OOPS and Core Java Interview Question and Answers

33. What are actually saved during the serialization process?
  Serialization saves all non static and non transient instance variables of an object.
 
Your Name Your Email-ID
Your Answer
34. What is URL Naming service?
 
  • URL naming service is a simple mechanism that lets a server object associate its Interoperable Object Reference (IOR) with a URL in the form of a string in a file.
  • Client programs can then locate the object using the URL pointing to the file on the web server.
  • In this scenario, a gate keeper is not necessary.
  • The URL naming service supports any URL that Java runtime supports, such as HTTP, FTP.
 
Your Name Your Email-ID
Your Answer
35. Explain Thread priorities?
 
  • Thread priorities are used by the thread scheduler to decide when each thread should be allowed to run.
  • In theory, higher priority threads get more CPU time than lower-priority threads. To set a threads priority, use the setpriority () method, which is a member of thread.
  • Its general form is as follows: Final void setpriority (int level)
 
Your Name Your Email-ID
Your Answer
36. What are the various operators used in Java?
 
  • Assignment operator
  • Comparison operators
  • Equality operators
  • Arithmetic operators
  • Shift operators
  • Bit wise operators
  • Logical operators
  • Conditional operator
 
Your Name Your Email-ID
Your Answer
12345678910 Page 9 of 10