Java interview preparation Quiz 4 Welcome to your Fresher Interview Preparation - Java Skills - 4 Name Email Phone Number 1. A ___________ program contains two or more parts that can run concurrently and each partcan handle a different task at the same time making optimal use of the available resources speciallywhen your computer has multiple CPUs.memorymulti-threadednonemultiple2. A ________thread cannot restartedlivenonealivedead3. _____________ wakes up a single thread that is waiting on this object's monitor.public void notify()notifynonepublic4. There are ___________ basic stages in its life cycle.none5435. Tcp stands for ________________ which allows for reliable communication between twoapplications .user data protocoluse datagram protocol.transmission control protocol.none6. ___________________ resumes a thread, which was suspended using suspend method ().public void suspend()nonepublic void resume()public void stop()7. ____________ is used to store XML, java classes, and javaserver pages.WARnonedatamemory8. The Java.net package provides support for the ________ common network protocols:23none19. __________________ is automatically called when the user moves off the page on which theapplet sits.forwhilestopnone10. ______________ class is used by server applications to obtain a port and listen for clientrequests.java.net.serversocketobjectnonejava11. ____________ method is used to get the primitive data type of a certain string.dataparseint()noneparse12. _________ provide the communication mechanism between two computers using TCP.socketsallocnonedealloc13. There are _____________ static methods which you can use on thread objects to control theirbehaviour.4none3514. ______________ describes a situation where two or more threads are blocked forever, waitingfor each other.nonebadlockdeadlockcoldlock15. There are ____________ methods in the applet class gives you the framework.245none16. The __________ class is used to tailor program output to the conventions of a particulargeographic, political or cultural region.pagelocalenonedaily17. ________________ is used to save space in large arrays.byte datatypenonebitchar18. Java is a ____________ programming language.multi-threadedmultipleprogramnone19. Java ______ priorities are in the range between MIN_PRIORITY and MAX_PRIORITY.threadfunctionsnonememory20. _______________ wakes up all the threads that called wait() on the same subject.public void wait()public void notify()nonepublic void notifyAll()21. _____________ is a tool which comes with jdk and it is used for generating java codedocumentation in HTML format from java source code which requires documentation in apredfined format.Javadocnonedocumentjava22. _________________ causes the current thread to wait until another thread invokes thenotify().nonevoidpublicpublic void wait ()23. _____________ puts a thread in the suspended state and can be resumed using resume()method.public void stop()public void resume()public void suspend()none24. Default value of byte datatype is _______.0none2125. _________________ wakes up a single thread that is waiting on this object's monitor.nonepublic void notifyAll()public void notify()public void wait()26. Java programming language provides a very handy way of creating threads and synchronizing their task by using _______________ blocks.nonememorydatasynchronized27. The __________ system generates runtimeexception and error exceptions.classnoneobjectjava runtime28. The ________________ class is used by server applications to obtain a port and listen forclient requests.socketjava.net.serversocketdatanone29. The purpose of the __________ class is to provide access to system resources.systemdatanonememory30. The Java supports _________ types of comments312431. Yes _______ statements can be nested.go.nonetryhome32. Java uses ________ compiler to enable high performance.timenonejust-in-timejust33. _________________ is automatically called after the browser calls the init method.noneforstartwhile34. _______________ is a reference to an object whose lock associates with the monitor that thesynchronized statements represents.objectclassnoneobjectidentifier35. _______________ is intended for whatever initialization is needed for your applet.fornoneinitwhile36. ______________ control object creation, limiting the number to one but allowing theflexibility to create more objects if the situation changes.doubletonnonetriplesingleton class37. ________________ stops a thread completelypublic void resume()public void suspend()public void stop()none38. What are the ____________ steps for creating an object for a class.none13239. There are ____________ simple methods, which makes thread communication possible.none31240. ________________ causes the current thread to wait until another thread invokes the notify().nonepublic void notify()public void notifyAll()public void wait()41. ____________ class is used to create objects that provide access to the files and directories ofa local file system.datamemoryfilenone42. The default value of an object reference declared as an instance variable is ____.objecnonenulldata43. _______________ invoked immediately after the start() method.memorydatapaintnone44. _______________ called only when the browser shuts down normally.whiledestroydonone45. When serializing an object to a file, the standard convention in java is to give the file a .serextension.datnonedevser46. ____________ class represents the socket that both the client and server use to communicatewith each other.javanonedatajava.net.socket47. An ____________ is a java program that runs in a web browser.cupletnoneappletduplet48. ____________ method is used to get the primitive data type of a certain string.dataparsenoneparseint()49. Udp stands for _________________ , a connection-less protocol that allows for packets ofdata to be transmitted between applications.noneuse datagram protocoluser data protocoluser datagram protocol50. An ____________ object cannot be changed once it is created.mutablenoneimmutabledataPlease fill in the comment box below. Time is Up!