2020 Latest 60 Java Interview Questions and Answers PDF
2020 Latest 60 Java Interview Questions and Answers PDF
<https://svrtechnologies.com/>
// Menu
<https://wa.me/919885022027>
*9. What’s new with the stop(), suspend() and resume() methods in JDK 1.2 ?*
*Answer:*
These methods have been deprecated in JDK 1.2.
*16. What modifiers may be used with an inner class that is a member of
an outer class?*
*Answer: *A (non-local) inner class may be declared as public,
protected, private, static, final, or abstract.
*17. Which java. util classes and interfaces support event handling?*
*Answer: *The Event Object class and the Event Listener interface
support event processing. ( oracle apex training online
<https://svrtechnologies.com/apex-training/> )
*19. What is the difference between the >> and >>> operators?*
*Answer: *The >> operator carries the sign bit when shifting right while
the >>> zero-fills bits that have been shifted out.
*21. What value does read Line() return when it has reached the end of a
file?*
*Answer:*
The readLine() method returns null when it has reached the end of a file.
JDK JVM
*Full-Form:* Java Development Kit Full Form: Java Virtual Machine
For Development Purpose
*39. How can we find the actual size of an object on the heap?*
*Answer: *In Java, there is no way to find out the actual size of an
object on the heap.
*44. Can we define a package statement after the import statement in java?*
*Answer: *We can’t define a package statement after the import statement
in java. a package statement must be the first
statement in the source file. We can have commented before the package
statement. ( oracle apex training online
<https://svrtechnologies.com/apex-training/> )
*60. Can we catch more than one exception in a single catch block?*
*Answer: *From Java 7, we can catch more than one exception with a
single catch block. This type of handling reduces
the code duplication.
Note: When we catch more than one exception in a single catch block,
catch parameter is implicitly final.
We cannot assign any value to catch parameter.
Ex : catch(ArrayIndexOutOfBoundsException || ArithmeticException e)
Read More »
<https://svrtechnologies.com/2020-latest-60-java-interview-questions-and-answers-
pdf/>
Read More »
<https://svrtechnologies.com/best-47-java-programming-interview-questions-and-
answers/>
Read More »
<https://svrtechnologies.com/top-43-java-developer-interview-questions-and-answers-
pdf/>
Read More »
<https://svrtechnologies.com/top-43-advanced-core-java-interview-questions-and-
answers/>
Read More »
<https://svrtechnologies.com/top-53-core-java-basic-interview-questions-and-
answers-pdf/>
All Questions
<https://svrtechnologies.com/category/java-interview-questions/>
Post navigation
← Previous Post
<https://svrtechnologies.com/top-60-advanced-sql-interview-questions-and-answers-
pdf/>
Next Post →
<https://svrtechnologies.com/top-50-sap-abap-interview-questions-and-answers-pdf/>
<https://www.svrtechnologies.video/courses>
JAVA Videos
Core & Adv Java | (J2EE) | (J2SE) S-Hibernate
₹9000
₹ 2900
*
// Experienced Faculty
*
// Real-time Scenarios
*
// Free Bundle Access
*
// Course Future Updates
*
// Sample CV/Resume
*
// Interview Q&A
*
// Complimentary Materials
/ Share on facebook
Facebook
/
/ Share on twitter
Twitter
/
/ Share on linkedin
LinkedIn
/
/ Share on whatsapp
WhatsApp
//