How is rounding performed under integer division?
The fractional part of the result is truncated. This is known as rounding toward zero.
What is the Dictionary class?
The Dictionary class provides the capability to store key-value pairs.
What are order of precedence and associativity, and how are they used?
Order of precedence determines the order in which operators are evaluated in expressions. Associatity determines whether an expression is evaluated left-to-right or right-to-left
What is a StringTokenizer ?
String Tokenizer provide parsing process in which it identifies the delimiters provided by the user , by default delimiters are spaces, tab, newline etc. and separates them from the tokens. Tokens are those which are separated by delimiters.
What are nested classes ?
There are two types : static and non-static.
static class means the members in its enclosing class (class within class) can be accessed by creating an object and cannot be accessed directly without creating the object.
non-static class means inner class and can be accessed directly with the object created for the outer class no need to create again an object like static class.
What is the difference between abstract class and interface?
a) All the methods declared inside an interface are abstract whereas abstract class may or may not contain abstract methods.
b) In abstract class, key word abstract must be used for the methods whereas interface we need not use that keyword for the methods.
c)Abstract class must have subclasses whereas interface can’t have subclasses