Deep Java Sea



Q.
How marker interface works.
  
Using "instanceof"
They aren't 'identified by the JVM' at all. They're identified by the Java code, for example ObjectOutputStream, via the instanceof operator.
No comments:
Q. What is maximum capacity of Hash Map ?
    unlimited or until you get OOM error because hashmap bucket can be increase till 2^32-1. which is quite enough.
No comments:
Q. Is Java pass by value or reference?
     Always pass by value
No comments:
Newer Posts Older Posts Home
Subscribe to: Comments (Atom)
  • Home
  • Java Interview Question
  • Spring Interview Question
  • Rest Web Service
  • Angular js Interview question
  • Last minute questions(Must Read)
  • HR Related question (General)

Popular Posts

  • Difference between JDK, JRE and JVM
  • what is concurrent HashMap
  • Circular dependency in spring
  • Break singleton pattern
  • double locked Singleton
  • Constructor in abstract class
  • Contract between equal and hash code
  • What is Perm space
  • Difference Between Interface and Abstract Class
  • How is Hashmap in Java implemented internally

Labels

core java HashMap Internal Design JVM Internal spring

Blog Archive

  • ►  2025 (1)
    • ►  March (1)
  • ►  2019 (1)
    • ►  May (1)
  • ▼  2017 (3)
    • ▼  June (3)
      • Q. How marker interface works.    U...
      • Q. What is maximum capacity of Hash Map ?     unli...
      • Q. Is Java pass by value or reference?      Always...
  • ►  2016 (5)
    • ►  December (1)
    • ►  August (1)
    • ►  June (2)
    • ►  May (1)
  • ►  2015 (8)
    • ►  September (4)
    • ►  June (1)
    • ►  May (3)
Picture Window theme. Powered by Blogger.