27. How does Java handle integer overflows and underflows? It uses those low order bytes of the result that can fit into the size of the type allowed by the …
Java
- Interview Questions and AnswersJavaTechnical Interview Questions and Answers
- Interview Questions and AnswersJavaTechnical Interview Questions and Answers
Core Java Interview Questions and Answers For Freshers and Experience Part-21
by Sby S121. To what value is a variable of the String type automatically initialized? The default value of an String type is null. 122. What is the difference between a field …
- Interview Questions and AnswersJavaTechnical Interview Questions and Answers
Core Java Interview Questions and Answers For Freshers and Experience Part-20
by Sby S115. What is constructor chaining and how is it achieved in Java ? A child object constructor always first needs to construct its parent (which in turn calls its parent …
- Interview Questions and AnswersJavaTechnical Interview Questions and Answers
Core Java Interview Questions and Answers For Freshers and Experience Part-19
by Sby S109. What is the difference between an if statement and a switch statement? The if statement is used to select among two alternatives. It uses a boolean expression to decide …
- Interview Questions and AnswersJavaTechnical Interview Questions and Answers
Core Java Interview Questions and Answers For Freshers and Experience Part-18
by Sby S103. What is the difference between a public and a non-public class? A public class may be accessed outside of its package. A non-public class may not be accessed outside …
- Interview Questions and AnswersJavaTechnical Interview Questions and Answers
Core Java Interview Questions and Answers For Freshers and Experience Part-17
by Sby S97. What are the legal operands of the instanceof operator? The left operand is an object reference or null value and the right operand is a class, interface, or array …
- Interview Questions and AnswersJavaTechnical Interview Questions and Answers
Core Java Interview Questions and Answers For Freshers and Experience Part-16
by Sby S91. Name the eight primitive Java types. The eight primitive types are byte, char, short, int, long, float, double, and boolean.
- Interview Questions and AnswersJavaTechnical Interview Questions and Answers
Core Java Interview Questions and Answers For Freshers and Experience Part-15
by Sby S85. Which characters may be used as the second character of an identifier, but not as the first character of an identifier? The digits 0 through 9 may not be …
- Interview Questions and AnswersJavaTechnical Interview Questions and Answers
Core Java Interview Questions and Answers For Freshers and Experience Part-14
by Sby S79. 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 …
- Interview Questions and AnswersJavaTechnical Interview Questions and Answers
Core Java Interview Questions and Answers For Freshers and Experience Part-13
by Sby S73. What do you understand by private, protected and public? These are accessibility modifiers. Private is the most restrictive, while public is the least restrictive. There is no real difference …