Advanced Java - 3

41. What is preemptive and Non-preemptive Time Scheduling?.
Preemptive: Running tasks are given small portions of time to execute by using time-slicing.


Non-Preemptive: One task doesn't give another task a chance to run until its finished or has normally yielded its time.

42. What is synchronization?.
Two or more threads trying to access the same method at the same point of time leads to synchronization.If that particular method is declared as synchronized only one thread can access it at a time. Another thread can access it only if the first thread's task is complete.

43. What are the various thread priorities?.
(i) Min-Priority-value(1).

(ii) Normal-Priority-value(5).

(iii)Max-Priority-value(10).

44.What is Inter-Thread communication?.
To exchange information between two threads.

45.The package java.applet.* has only one class.

46.What is the default layout of Dialog object.
BorderLayout

47.executeQuery() returns ResultSet.

48.Throwable class is a sub-class of object and implements Serializable.

49.Super class of TextArea and TextField is TextComponent.

50. Skeletons are server side proxies and stubs are client side proxies.

51. GridBagConstraints class helps in positioning of parameters of a
component within an object laidout using GridBagLayout.

52. Netscape introduced JScript language - True

53. EventDelegation model was introduced by JDK 1.1 - False

54. StringTokenizer provides two constructors - False

55. java.applet is one of the smallest package in Java API - True

56. Drag and Drop API consist of java.awt.dnd package - False

57. What is IP?.
IP is Internet Protocol. It is the network protocol which is used to send information from one computer to another over the network over the internet in the form of packets.

58. What is a port?.
A port is an 16-bit address within a computer.Ports for some common Internet Application protocols.
File Transfer Protocol-21.

Telnet Protocol-23.

Simple Mail Transfer Protocol-25.

Hypertext Transfer Protocol-80.

59.What is hypertext?.
Sockets are endpoints of Internet Communication.They are associated with a host address and a port address.Clients create client sockets and connect them to server sockets.

UDP is a connectionless protocol.

60. MIME(Multipurpose Internet Mail Extension) is a general method by which the content of different types of Internet objects can be identified.

0 Response to "Advanced Java - 3"

Post a Comment

powered by IT Jobs Posting