Correct Answer: Executing more than one program simultaniously(ie at time) Ex: Windows media player is a program Internet explorer(IE) is another program executing both the programs at a time is called multi tasking
Correct Answer: To do multi threading in java we use interfaces and classes defined in javalang package Those classes and interfaces are: JavalangRunnable, Javalang Thread, JavalangThreadGroup
Correct Answer: When ever two or more threads are sharing same data for updating then unpredicted result will be there in the data For Example take a thread is depositing amount in Account Object and another thread is withdrawing amount from the same Account Object when ever both threads are executed simultaneously then unexpected result is stored in the balance of the Account Object
Correct Answer: If exception is generated in try and if that exception is not catch by any catch then finally is executed If exception is generated in try and if that exception is caught by one of catch statements then also finally is executed if no exception is generated then also finally is executed
Correct Answer: Constructor chaining is the process of calling one constructor from another constructor with respect to current object Within same class: It can be done using this() keyword for constructors in same class From base class: by using super() keyword to call constructor from the base class