Sapient Core Java Interview Questions

Company Name :  Sapient

Interview Questions:

  • Tell me about your self ?
  • What are the types of class loaders in Java.
  • 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?
  • Why character array is better than string for storing password in java?
  • 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?
  • Is sizeof a keyword?
  • Which Interface is used to make duplicate of Objects ? Ans: cloneable
  • What are some advantages and disadvantages of Java Sockets?
  • 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 ?
  • Can we throw exception from finally block in JAVA ?
  • How does Java handle integer overflows and underflows?
  • Tell me  difference between Stringbuffer and stringbuilder ?
  • What is casting?
  • what is new in JSP?
  • What do you mean by Java Reflection ?
  • Why does the InputStreamReader class has a read() ?
  • Describe a problem you faced and how you dealt with it


Enter your email address to get our daily JOBS & INTERVIEW FAQ's Straight to your Inbox.

Make sure to activate your subscription by clicking on the activation link sent to your email


Enter your email address to get our daily JOBS & INTERVIEW FAQ's Straight to your Inbox.

Make sure to activate your subscription by clicking on the activation link sent to your email