Question: Answer all What, in the method healer, would indicate thet dhere would he a vakue returned 2. How many conanutors does the elon elass have
What, in the method healer, would indicate thet dhere would he a vakue returned 2. How many conanutors does the elon elass have A) I B) 2 ) 3 .To define an cject of TesiFild, which of followings is comect? 4. If you do not have hreak statements in your swilch talement, what will happen when a match is found A) will esecute thaet case Mock and jump out of the switch statement B) R will go and execule the default statement Ii will execute each hlock of the case statement as well as all the following statements in the following locks and default block, if it exists, to the closing brace. D) None of the shove 5. In oeder to have Swing components, what packagrs do you need to impont? 6. A switch statement is ased for 7. If you omit the return type, what happens? I of the above A) JAn error message aying you don't have a return type Data type of integer is assumed C) D) t will assume that it is void Nothing will happen 8. If you place a semicolon afler the if statement without the "else" clause, what will happen? A) You will get a syntax error B) Only the if statement will be executed if the condition evaluates to true C) Only the else statement will be executed if the condition evaluates to false Aill the statements following the if statement will be executed regardless of the evaluation of the condition 9. The relational operator for unequality is 10. The logic operator for or is I. The expression for both variable y less than or equal to 0 and x is not equal to 7 is A)B)O CD) both a and b y0 && x t7) D) both a and e 12. How would you code the constructor header for the class Pay, which has the parameters fitPrice and intQuantity in that order? A) Pay(fltPrice, int Quantity) C) Paydouble fitPrice, int intQuantity) D) Payfint fit Price, double iniQuantity) B) Pay(int Quantity, filtPrice) 13. How many constructors does the JTextField class have? A) 1 14. In Java, the switch tatement only works with B) int or char expressions A) int expressions C in, char, short or byte expressions D) all data types
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
