- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 7
- Posts with Downvotes
- 5
- Downvoting Members
- 4
[INDENT]:icon_lol:Suppose there is a (method) [U]call stack[/U]; An [B]exception[/B] has occured in a deep level but not handled there yet; So the corresponding [I]finally block[/I] at that level is executed first and then [B]it[/B] is thrown to be propagated up through the [U]call stack[/U] and at each step if [B]it[/B] … |
|
[INDENT];)Suppose a method is called with [COLOR="Red"][B][I]formal[/I][/B][/COLOR] parameters of [COLOR="Red"]supertype[/COLOR] and [COLOR="Red"][B](1)[/B][/COLOR]the [COLOR="Red"][B][I]actual[/I][/B][/COLOR] parameters of [COLOR="Red"]subtype[/COLOR]; Now the method declaration is [COLOR="Red"][B](2)[/B][/COLOR]overridden and overloaded in the [COLOR="Red"][B](3)[/B][/COLOR]previous same [COLOR="Green"]class[/COLOR] as well as in the [COLOR="Red"][B](4)[/B][/COLOR]overriding [COLOR="Green"]subclass[/COLOR]. :icon_rolleyes:An [COLOR="Green"][B]object[/B] [I]reference[/I][/COLOR] is used on which the call is performed; Here the [I][COLOR="Green"]reference[/COLOR][/I] … |
|
A [B][I][U]concept[/U][/I][/B]:icon_rolleyes: has grown, may be it as wrong or right, that in Java [COLOR="Green"]if we do not take the help of [I]thread class[/I] or [I]runnable interface[/I] at all then also several threads get executed there[/COLOR]; If so how it happens with other languages where there is no concept of … |
|
Re:
Learning about Abstract classes and interfaces, is there anything else I have forgotten about? [B]Abstract Class[/B] 1.Cannot be initated. 2.Can have concrete methods. 3.Abstract methods with no body 4.A class extending the abstract class does not need to use all the abstract methods from the abstract class. 5.A class can … |
|
[INDENT]What is the [U][B]file naming[/B] conventions[/U] [I]to compile and run the programme[B]([/B]application[B])[/B][/I] if there [COLOR="Green"]exists[/COLOR] [COLOR="Red"][B],[/B][/COLOR][/INDENT]:icon_rolleyes:[LIST=1] [*]No class in a package; [*]One class with default accessibility in a package; [*]Many classes with default accessibilities in a package; [*]Many classes with default accessibilities and one class with public accessibility in a … |
|
[INDENT]We know that out of local variables if no initialization is provided, a default initialization takes place [B][I]at the time of[/I] class loading [I]or[/I] instantiation[/B]. :icon_rolleyes:But the question is [U]where it takes place in a programming code?[/U] Either [COLOR="Green"]it is after the declaration then and there to protect and optimise … |
|
:confused:If there [COLOR="Red"]exists a [B]class [I]lock[/I][/B][/COLOR] and [COLOR="Green"]from this class [I]different [B]thread objects[/B] or [U]different [B]objects[/B] & there corresponding [B]threads[/B][/U][/I] are created[/COLOR], may they [B][I]run[/I] simultaneously[/B]?:?: e.g. [ICODE]public class Smiley extends Thread { public void run() { while(true) { try { synchronized(Smiley.class) { System.out.print(":"); sleep(100); System.out.print("-"); sleep(100); System.out.print(")"); sleep(100); } … |
|
[B][COLOR="Red"]final[/COLOR][/B] members are used to specify that it can not be [I]revalued[/I] or [I]overriden[/I]. :icon_lol: [U]Explain [B]logically,[/B] [I]why[/I][/U] a [B][COLOR="Green"]static[/COLOR][/B] method can not [B][I]override[/I][/B] comparing it with an [I]instance method[/I]. May a [B][COLOR="Green"]static[/COLOR][/B] variable be [B][I]revalued[/I][/B]? :icon_exclaim: If, [B][COLOR="Green"]static[/COLOR][/B] also serves the same purpose at this point as [B][COLOR="Red"]final[/COLOR][/B], then … |
|
When [B][I]floating point division[/I][/B] operator is [I]overloaded[/I], it [U]remains nothing[/U] ; :idea:So what is the [COLOR="Green"]role and importance[/COLOR] of [U][B][I]floating point remainder operator[/I][/B][/U],:icon_rolleyes: how it [COLOR="Red"]differentiate[/COLOR] from [B]integer remainder operator[/B] ? |
|
Is there any [I][U]relationship[/U][/I] among the [U][I][B]bounds[/B][/I][/U] of a [B]type [I]parameter[/I][/B] in [B]Generics[/B] i.e. whether they are channeled([B][U]subclass[/U] or [U]superclass[/U][/B]) [U]uniquely[/U] [I]sequencially[/I] or [COLOR="Green"]differently[/COLOR] ? :confused: We use [COLOR="Red"]extends[/COLOR] clause once to inherit some only one class and to inherit others we have to [COLOR="red"]implement[/COLOR]. But for multiple bounds in … |
|
:icon_rolleyes: Describe the [COLOR="red"]differences[/COLOR] and [COLOR="Green"]similarities[/COLOR] between the [B]inner classes[/B] and [B]subclasses[/B] in the context of their objects created [B][COLOR="red"]([/COLOR][/B][I]i.e.[/I] [B]non-static[/B][B][COLOR="Red"])[/COLOR][/B]; Analyze the control flow in a [U]simple program where they are nested jointly[/U] and deeply by all possible extreme situations .......... :icon_question: |
|
:icon_cry: How the [B]JDK[/B] tool could know the (directory that contained the first element of the) [I]Fully Qualified Package-Name[/I] of the [U]required class[/U] that yet to be searched ? |