Question: Is the ternary operator written x : y ? z or x ? y : z ?
Answer: It is written x ? y : z.
Question: How is rounding performed under integer division?
Answer: The fractional part of the result is truncated. This is known as rounding toward zero.
Question: What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?
Answer: The Reader/Writer class hierarchy is character-oriented, and the InputStream/OutputStream class hierarchy is byte-oriented.
Question: What classes of exceptions may be caught by a catch clause?
Answer: A catch clause can catch any exception that may be assigned to the Throwable type. This includes the Error and Exception types.
Question: If a class is declared without any access modifiers, where may the class be accessed?
Answer: A class that is declared without any access modifiers is said to have package access. This means that the class can only be accessed by other classes and interfaces that are defined within the same package.
Question: Does a class inherit the constructors of its superclass?
Answer: A class does not inherit constructors from any of its superclasses.
Question: What is the purpose of the System class?
Answer: The purpose of the System class is to provide access to system resources.
Question: Name the eight primitive Java types.
Answer: The eight primitive types are byte, char, short, int, long, float, double, and boolean.
Question: Which class should you use to obtain design information about an object?
Answer: The Class class is used to obtain information about an object's design.
Question: can the Kawa or any another J-editor export a .EXE file and to be has an install shield
Answer: I didn't know i need an answer.
Question: What modifiers are allowed for methods in an Interface?
Answer: Only public and abstract modifiers are allowed for methods in interfaces.
0 comments:
Post a Comment