redlooki.blogg.se

Bluej exercise solutions chapter 2
Bluej exercise solutions chapter 2













For example, the String and Scanner class. Library classes are the pre-written classes which are a part of the Java system. What are the library classes in Java? What is their use? Reason - All the wrapper classes are available in java.lang package. In which package is the wrapper class Integer available? Reason - The given statement initialises the variable count with the integer value 12. Variable count will be initialised with value 12.

  • Value of count will be unknown as no value has been assigned yet.
  • An array count will be initialised with 12 elements, all having a default value of zero (0).
  • Variable count will be initialised with default value of int, i.e., zero (0).
  • bluej exercise solutions chapter 2

    Variable count will be initialised with value 12.What will be the result when the following statement is executed? Reason - Integer.parseInt() method parses the String argument as a signed integer. Name the method that can convert a string into its integer equivalent. The String can have a '-' sign in the beginning. Reason - parseInt() converts the given String argument into an integer value if the given string is a combination of numbers and decimal. The value returned by Integer.parseInt("-321") is. Reason - The return type of the toLowerCase() method is char as it converts the given character argument into lower case. The return type of the toLowerCase() method is. Reason - The return type of isLowerCase() method is boolean as it returns true if the character argument is in lower case else it returns false. The return type of the isLowerCase() method is.

    bluej exercise solutions chapter 2

    Reason - String is a composite data type. Which of the following is a composite data type? Reason - int, float, char, all three are primitive data types in Java. Which of the following is a primitive data type? Chapter 12 Library Classes Class 10 - Logix Kips ICSE Computer Applications with BlueJ















    Bluej exercise solutions chapter 2