-
11. double input = 314159.26; 12. NumberFormat nf= NumberFormat.getInstance(Locale.ITALIAN); 13. String b; 14. //insert code here Which code, inserted at line 14, sets the value of b to 3 14.159,26?()
A . b = nf.parse( input);
B . b = nf.format( input);
C . b = nf.equals( input);
D . b = nf.parseObject( input);
-
The helicopter deck of a ship must be marked with the units identification,appropriate aiming circles,and a continuous line on the perimeter which is().
A . 8 inches wide
B . 16 inches wide
C . 24 inches wide
D . 32 inches wide
-
Which code, inserted at line 16, correctly retrieves a local instance of a Point object?()https://assets.asklib.com/images/image2/2018080114364177668.jpg
A . Point p = Line.getPoint();
B . Line.Point p = Line.getPoint();
C . Point p = (new Line()).getPoint();
D . Line.Point p = (new Line()).getPoint();
-
Given that c is a reference to a valid java.io.Console object,which two code fragments read a line of textfrom the console?()
A . String s = c.readLine();
B . char[] c = c.readLine();
C . String s = c.readConsole();
D . char[] c = c.readConsole();
E . String s = c.readLine("%s", "name ");
-
Given:
https://assets.asklib.com/images/image2/2018080113395014348.png
Which code, inserted at line 15, creates an instance of the Point class defined in Line?()
A . Point p = new Point();
B . Line.Point p = new Line.Point();
C . The Point class cannot be instatiated at line 15.
D . Line l = new Line() ; l.Point p = new l.Point();
-
Given:
https://assets.asklib.com/images/image2/2018080116234449110.png
Which line of code marks the earliest point that an object referenced by intObj becomes a candidate for garbage collection?()
A . Line 16
B . Line 17
C . Line 18
D . Line 19
-
Which code should be inserted at line 1 of Demo.java to compile and run Demo toprint "pizzapizza"?()https://assets.asklib.com/images/image2/2018080114112336616.jpg
A . import utils.*;
B . static import utils.*;
C . import utils.Repetition.*;
D . static import utils.Repetition.*;
E . import utils.Repetition.twice();
F . import static utils.Repetition.twice;
G . static import utils.Repetition.twice;
-
Given a class Repetition:
https://assets.asklib.com/images/image2/2018080111013543546.png
Which code should be inserted at line 1 of Demo.java to compile and run Demo to print "pizzapizza"?()
A . import utils.*;
B . static import utils.*;
C . import utils.Repetition.*;
D . static import utils.Repetition.*;
E . import utils.Repetition.twice();
F . import static utils.Repetition.twice;
-
Given that c is a reference to a valid java.io.Console object, which two code fragments read a line of text from the console?()
A . String s = c.readLine();
B . char[ ] c = c.readLine();
C . String s = c.readConsole();
D . char[ ] c = c.readConsole();
E . String s = c.readLine("%s", "name ");
F . char[ ] c = c.readLine("%s", "name ");
-
Given:
https://assets.asklib.com/images/image2/2018080115531262051.jpg
Which code, inserted at line 15, creates an instance of the Point class defined in Line?()
A . Line l = new Line() ; l.Point p = new l.Point();
B . Line.Point p = new Line.Point();
C . The Point class cannot be instatiated at line 15.
D . Point p = new Point();
-
Which code, inserted at line 14, sets the value of b to 314.159,26?()https://assets.asklib.com/images/image2/2018080115314855108.jpg
A . b=nf.parse(input);
B . b=nf.format(input);
C . b=nf.equals(input);
D . b=nf.parseObject(input);
-
Given:
https://assets.asklib.com/images/image2/201808011635448985.png
Which code, inserted at line 16, correctly retrieves a local instance of a Point object?()
A . Point p = Line.getPoint();
B . Line.Point p = Line.getPoint();
C . Point p = (new Line()).getPoint();
D . Line.Point p = (new Line()).getPoint();
-
You create a Web page that contains the span shown in the following line of code. TextYou need replace the contents of the span with HTML that you download from a URL specified by a global variable named localURL. Which code segment should you use?()
A . $.ajax({ type: "GET", url: localURL, dataType: "jsonp", success: function(htmlText { $("#span1").text(htmlText); } });
B . $.ajax( localURL, {}, function(htmlText) { $("#span1").html(htmlText); },"html" );
C . $.ajax({ type: "GET", url: localURL, dataType: "html",success: function(htmlText) { $("#span1").innerHTML = htmlText; }});
D . $.ajax({ type: "GET", url: localURL, success: function(htmlText) { $("#span1").html(htmlText); } })
-
Which lines of code are valid declarations of a native method when occurring within the declaration of the following class?() public class Qf575 { // insert declaration of a native method here }
A . native public void setTemperature(int kelvin);
B . private native void setTemperature(int kelvin);
C . protected int native getTemperature();
D . public abstract native void setTemperature(int kelvin);
E . native int setTemperature(int kelvin) {}
-
10. class Line { 11. public static class Point { } 12. } 13. 14. class Triangle { 15. // insert code here 16. } Which code, inserted at line 15, creates an instance of the Point class defined in Line?()
A . Point p = new Point();
B . Line.Point p = new Line.Point();
C . The Point class cannot be instatiated at line 15.
D . Line 1 = new Line() ; 1.Point p = new 1.Point();
-
Given:
https://assets.asklib.com/images/image2/2018080210442565260.jpg
Which code, inserted at line 15, creates an instance of the Point class defined in Line?()
A . Point p = new Point();
B . Line.Point p = new Line.Point();
C . The Point class cannot be instatiated at line 15.
D . Line l = new Line() ; l.Point p = new l.Point()
-
Given: 11.double input = 314159.26; 12.NumberFormat nf = NumberFormat.getInstance(Locale.ITALIAN); 13.String b; 14.//insert code here Which code, inserted at line 14, sets the value of b to 314.159,26?()
A . b = nf.parse( input );
B . b = nf.format( input );
C . b = nf.equals( input );
D . b = nf.parseObject( input );
-
interface A { public int getValue() } class B implements A { public int getValue() { return 1; } } class C extends B { // insert code here } Which three code fragments, inserted individually at line 15, make use of polymorphism?()
A . public void add(C c) { c.getValue(); }
B . public void add(B b) { b.getValue(); }
C . public void add(A a) { a.getValue(); }
D . public void add(A a, B b) { a.getValue(); }
E . public void add(C c1, C c2) { c1.getValue(); }
-
You are writing a method that accepts a string parameter named message. Your method must break the message parameter into individual lines of text and pass each line to a second method named Process. Which code segment should you use?()
A .https://assets.asklib.com/images/image2/201807271520576841.jpg
B .https://assets.asklib.com/images/image2/2018072715210345244.jpg
C .https://assets.asklib.com/images/image2/2018072715210662717.jpg
D .https://assets.asklib.com/images/image2/2018072715210992038.jpg
-
Given:
https://assets.asklib.com/images/image2/2018080116332893969.png
Which code fragment, inserted at the end of line 12, produces the output p is 420?()
A . p.setWeight(420);
B . p.changePayload(420);
C . p = new Payload(420);
D . Payload.setWeight(420);
E . p = Payload.setWeight(420);
-
Given a class Repetition:
https://assets.asklib.com/images/image2/2018080116125392704.jpg
Which code should be inserted at line 1 of Demo.java to compile and run Demo to print "pizzapizza"?()
A . import utils.*;
B . static import utils.*;
C . import utils.Repetition.*;
D . static import utils.Repetition.*;
E . import utils.Repetition.twice();
F . import static utils.Repetition.twice;
G . static import utils.Repetition.twice
-
Given:
https://assets.asklib.com/images/image2/2018080115453495636.jpg
Which code, inserted at line 16, correctly retrieves a local instance of a Point object?()
A . Point p = Line.getPoint();
B . Line.Point p = Line.getPoint();
C . Point p = (new Line()).getPoint();
D . Line.Point p = (new Line()).getPoint()
-
Which code, inserted at line 15, creates an instance of the Point class defined in Line?()https://assets.asklib.com/images/image2/2018080114224866200.jpg
A . Point p = new Point();
B . Line.Point p = new Line.Point();
C . The Point class cannot be instatiated at line 15.
D . Line l = new Line(); l.Point p = new l.Point();
-
Given:Which code, inserted at line 16, correctly retrieves a local instance of a Point object?()
<img src='https://img2.soutiyun.com/shangxueba/ask/64326001-64329000/64326530/4cf8417195a93b758bf9191835b42d8f.jpg' />
A.Point p = Line.getPoint();
B.Line.Point p = Line.getPoint();
C.Point p = (new Line()).getPoint();
D.Line.Point p = (new Line()).getPoint();