Questions
Which of the following methods is used to pre-allocate a space for a certain number of characters, after a StringBuffer has been constructed?
- setLength()
- length()
- capacity()
- startWith()
- ensureCapacity()
Which of the following methods is used to extract a single character from a string?
- getChars()
- getBytes()
- toCharArray()
- charAt()
- equalsIgnoreCase()
Which of the following thread group methods returns the number of threads in a group, along with the group, for which this thread is a parent?
- int activeGroupCount()
- final void destroy()
- final int getMaxPriority()
- int activeCount()
- none of these
Which of the following package methods returns the name of the invoking package?
- String getName()
- String getImplementationTitle()
- String getImplementationVersion()
- String getImplementationVendor()
- String getSpecificationTitle()
The ___________ method determines whether the string in the question ends with a specified string or not.
- endWith()
- int hashCode()
- arraycopy()
- int exitValue()
- int hashCode()
___________ technique places orders into groups with similar characteristics.
- Sequential pattern
- Clustering
- Prediction
- Either 1 or 3
- None of these
Which of the following techniques involves mapping a set of input values to a single output value?
- Association
- Sequential pattern
- Clustering
- Prediction
- None of these
The _____________ of the server must be such that the server can handle the requirements of an ever-growing amount of data in the data warehouse.
- capacity
- performance
- scalability
- either 1 or 2
- none of these
The _______________ method searches for the first occurrence of a character or substring.
- equals()
- indexOf()
- startWith()
- endWith()
- lastIndexOf()
Which of the following methods displays the call stack for threads?
- void checkAccess()
- void destroy()
- void interrupt()
- static void dumpStack()
- void run()
If we want to convert all the characters in a String object into a character array, we use the _________ method.
- toCharArray()
- regionMatches()
- trim()
- replace()
- endWith()
Which of the following requirements of the database server must be good enough to support the user's performance expectation during analysis?
- Performance
- Capacity
- Scalability
- Open interface
- None of these