127. What is casting? There are two types of casting, casting between primitive numeric types and casting between object references. Casting between numeric types is used to convert larger values, …
Freshers Interview Questions
- Interview Questions and AnswersJava ProgrammingTechnical Interview Questions and Answers
- Interview Questions and AnswersJava ProgrammingTechnical Interview Questions and Answers
Advanced Java Interview Questions and Answers For Freshers and Experience Part-14
by Sby S121. Which class is the immediate superclass of the Container class? Component. 122. If a method is declared as protected, where may the method be accessed? A protected method may …
- Interview Questions and AnswersJava ProgrammingTechnical Interview Questions and Answers
Advanced Java Interview Questions and Answers For Freshers and Experience Part-13
by Sby S115. What is the purpose of the File class? The File class is used to create objects that provide access to the files and directories of a local file system.
- Interview Questions and AnswersJava ProgrammingTechnical Interview Questions and Answers
Advanced Java Interview Questions and Answers For Freshers and Experience Part-12
by Sby S109. How are the elements of a GridBagLayout organized? The elements of a GridBagLayout are organized according to a grid. However, the elements are of different sizes and may occupy …
- Interview Questions and AnswersJava ProgrammingTechnical Interview Questions and Answers
Advanced Java Interview Questions and Answers For Freshers and Experience Part-11
by Sby S103. What restrictions are placed on the values of each case of a switch statement? During compilation, the values of each case of a switch statement must evaluate to a …
- Interview Questions and AnswersJava ProgrammingTechnical Interview Questions and Answers
Advanced Java Interview Questions and Answers For Freshers and Experience Part-10
by Sby S97. Is &&= a valid Java operator? No. It is not a valid java operator. 98. Name the eight primitive Java types. The eight primitive types are byte, char, short, …
- Interview Questions and AnswersJava ProgrammingTechnical Interview Questions and Answers
Advanced Java Interview Questions and Answers For Freshers and Experience Part-9
by Sby S91. What is the Map interface? The Map interface replaces the JDK 1.1 Dictionary class and is used associate keys with values.
- Interview Questions and AnswersJava ProgrammingTechnical Interview Questions and Answers
Advanced Java Interview Questions and Answers For Freshers and Experience Part-8
by Sby S85. How is rounding performed under integer division? The fractional part of the result is truncated. This is known as rounding toward zero.
- Interview Questions and AnswersJava ProgrammingTechnical Interview Questions and Answers
Advanced Java Interview Questions and Answers For Freshers and Experience Part-7
by Sby S79. When can an object reference be cast to an interface reference? An object reference be cast to an interface reference when the object implements the referenced interface.
- Interview Questions and AnswersJava ProgrammingTechnical Interview Questions and Answers
Advanced Java Interview Questions and Answers For Freshers and Experience Part-6
by Sby S61. What method is invoked to cause an object to begin executing as a separate thread? The start() method of the Thread class is invoked to cause an object to …