Top Java Interview Questions

  • write your own ArrayList in Java ?
  • How to read and write image from a file ?
  • What is difference between static and init block in java.
  • How ConcurrentMap works?
  • Can a static block throw exception?
  • What is difference between iterator access and index access?
  • Write a program to shuffle a deck of 52 cards and shuffle them equally to 4 players
  • Why character array is better than string for storing password in java?
  • what is daemon thread in java
  • What is a pointer and does Java support pointers?
  • What is Java Reflection API?
  • What is the difference between Serializable and Externalizable interfaces
  • Explain the difference between Shallow Copy and Deep Copy.
  • Can a main() method be overloaded?
  • What is true about Singleton class
  • Which Interface is used to make duplicate of Objects ?
  • What is the main difference between Java platform and other platforms?
  • Which one is the non-access modifiers ?Ans : Static
  • If a class is declared without any access modifiers, where may the class be accessed?
  • Which is the marker interface ? Ans :empty interface
  • Is sizeof a keyword?
  • Which can appropriately be thrown by a programmer using Java SE technology to create a desktop application? Ans: NumberFormatException
  • Which Interface is used to make duplicate of Objects ? Ans: cloneable
  • What are some advantages and disadvantages of Java Sockets?
  • What is true about Singleton class ? Ans :Only one object can exist
  • describe the concept of polymorphism
  • When can an object reference be cast to an interface reference?
  • How does Java allocate stack and heap memory ?
  • What is memory leak in java ?
  • What is a platform?
  • Can we throw exception from finally block in JAVA ?
  • How does Java handle integer overflows and underflows?
  • Which object oriented Concept is achieved by using overloading and overriding?Ans : Ploymorphism
  • Can a for statement loop indefinitely? Ans : YEs
  • Tell me  difference between stringbuffer and stringbuilder ?
  • What is casting?
  • what is new in JSP?
  • Why internationalization often named as i18n?
  • What do you mean by Java Reflection ?
  • Why does the InputStreamReader class has a read()

Search:

Recent Posts