Java Programming and Technical Programming

What is special about string objects as compared to objects of other derived types?(More than 1 may be correct)

A. Java provides string constant pool to store the string objects
B. You can concatenate two string objects using ‘+’
C. You can create string objects without or without using new operator

Read Solution (Total 0)

Java Other Question

Column size is mandatory to create an array in java. State true or false Identify the correct options from the classes provided below.
More than one may be correct.

A. import static edu.ABC.model.Account.*;
public class Loan {
public double getInterest() {
return INTEREST_RATE;
}
}

B. import static edu.ABC.model.Account ;
public class Loan {
public double getInterest() {
return INTEREST_RATE;
}
}

C. import edu.ABC.model.Account ;
public class Loan {
public double getInterest() {
return Account.INTEREST_RATE;
}
}

D. package edu.ABC.model;
public class Loan {
public double getInterest() {
return INTEREST_RATE;
}
}