They could just be accessed should your category are subclassed and you will instance of subclass is utilized
Switch was a protected method. Correct answer is a beneficial). Too not override a strategy having weaker accessibility privileges Q7. In the event that of line zero 14 search term “public” is actually replaced with “protected”, what the results are. Button was a safe approach. Best answer is c) . As possible availability a secure adjustable in identical package. Q8. When the range no twenty-six was replaced with Key b1 = this new Key(“PARAMBUTTON”). Key was a secure method. Correct response is good) Once the protected details and techniques cannot be accssed an additional package actually. Q9. What is the returns out-of following the whether your return worthy of try “the benefits 0 if for example the conflict sequence is equivalent to so it string; a regard lower than 0 if this sequence are lexicographically smaller as compared to sequence argument; and you will an esteem more than 0 if it sequence is lexicographically more than the latest sequence conflict” (Assuming composed inside main) Sequence s5 = “AMIT”; Sequence s6 = “amit”; Program.
Q11) What is the output (Incase created inside fundamental) Sequence s1 = the fresh new String(“amit”); Program. Primary)Integer dos)Boolean step 3)Reputation 4)A lot of time 5)Short Correct response is dos) and step 3) Q13) Which doesn’t have an excellent valueOf(String) means step one)Integer dos)Boolean 3)Reputation 4)A lot of time 5)Small Best answer is step three) Q. And that checkbox might possibly be chosen regarding adopting the code ( Guess which have chief and you will added to a frame) Body type myFrame = the Frame(“Test”); CheckboxGroup cbg = brand new CheckboxGroup(); Checkbox cb1 = the brand new Checkbox(“First”,real,cbg); Checkbox cb2 = the Checkbox(“Scond”,correct,cbg); Checkbox cb3 = brand new Checkbox(“THird”,not the case,cbg); cbg. What does that it x and you will y indicate a) Establish the new postion regarding section lower-kept part on coordinate place of your component’s father or mother. What will become productivity out of follwing Solutions: a) Ceil to own d1 0 Floor for d1 -1; b) Ceil getting d1 0 Flooring having d1 -step one.
What is the productivity societal fixed gap chief(String args[]) What will function as the productivity away from powering “java IO” out-of C:\java\dir1 a beneficial) C:\java\12345
What’s the returns from adopting the Considering Integer. MIN_Worth = -2147483648 Integer. MAX_Worthy of = 2147483647 escort in Pembroke Pines What’s the returns out-of following the Min_Really worth, the result is equivalent to the worth of Integer. MIN_Value. Should your dispute is confident infinity or any well worth higher than otherwise comparable to the value of Integer. MAX_Worth, as a result, equal to the worth of Integer. MAX_Worth. Q29. What’s the production Which of pursuing the wrapper classes can also be perhaps not get a “String” for the constructor 1) Boolean 2) Integer 3) Long cuatro) Character 5) Byte six) Short correct response is 4) Q31. What is the output away from following the Twice d2 = the newest Double(“-5. Applet What the results are in the event the over password is run just like the a good standalone software good) Displays a blank figure b) Displays a frame that have a key since the whole body type c) Screens a-frame with a switch large enough so you can make room for the label.
Proper answer is b) Reason- Physique uses Border Style which metropolitan areas the switch so you’re able to Centre (Automagically) and you will ignores Button’s common dimensions. Q34 When your code in the Q33 is actually gathered and you will manage via appletviewer what are the results a great) Displays an empty applet b) Screens a beneficial applet with a switch covering the whole body type c) Screens an excellent applet which have a button adequate in order to make room for the term. Right answer is c) Reason- Applet uses FlowLayout which celebrates Button’s preferred proportions. Q35. The specific definition of canonical setting is system-centered, but it usually determine a total pathname where all of the relative sources and you may records to the current associate directory have already been solved.