Comprog

This method returns an array of the enumerated constants
ToString()
Equals()
ValueOf()
Values()
It is a sequence of characters that represent a string or multiple strings
Boolean expression
Logical expression
Arithmetic expression
Regular expression
In regular expressions, which repetition operator is used to represent 0 or 1 occurrence?
+
*
?
{x}
This java class stores the format of a regular expression
Pattern
Matcher
String
Scanner
It is a wildcard operator that represents any single character in regular expressions
Asterisk
Dot
Comma
Semicolon
This method returns the name of the calling constant object
ToString()
Ordinal()
Equals()
CompareTo()
In regular expressions, this method scans the input sequence looking for the next subsequence that matches a pattern
Find()
Next()
Split()
ReplaceAll()
Which exception is always executed first?
Try
Else
Catch
Finally
Which of the following is NOT a method of the OutputStream class
Read()
Close()
Flush()
Write()
Which of the following special characters is used to separate special characters is used to separate path components?
/
\
(
)
What method removes the last element of the path?
Delete()
Erease()
Remove()
Void()
This is a collection of related interfaces
Class
Method
Package
Variable
How many base classes can a class inherit from?
1
2
3
4
This keyword is used to imply inheritance
Extends
Implements
Continue
Throw
It is a collection of classes
Method
Interface
Package
Variable
It iws a public method that changes the data stored in a private instance variable
Accessor
Argument
Mutator
Parameter
The characteristics of an objects are known as
Attributes
Classes
Method
Variables
What occurs when methods share the same name within the same class?
Encapsulation
Overloading
Overriding
Polymorphism
What is the process of combining actions and data into a single item?
Encapsulation
Overloading
Overriding
Polymorphism
It is the ability of an object to take on multiple forms
Encapsulation
Overloading
Overriding
Polymorphism
Which of the following keywords is used for implementing an interface
Extends
Implements
Continue
Throw
What is the consructor of a class named Exam?
Exam()
Main
Public
Void
Double ans = Math.abs(6.7);
-6.7
6.0
6.7
7.0
{"name":"Comprog", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"This method returns an array of the enumerated constants, It is a sequence of characters that represent a string or multiple strings, In regular expressions, which repetition operator is used to represent 0 or 1 occurrence?","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
Make your own Survey
- it's free to start.