Java - Interview Questions and Answers for 'Vyom Labs' | Search Java Interview Question -

Search Java Interview Questions

 2280 questions in repository.
 There are more than 200 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text


Interview Questions and Answers for 'Vyom Labs' - 3 question(s) found - Order By Newest

Frequently asked in Infosys and HCL Technologies ( Based on 2 feedback )
 Q1. What are different ways of object creation in Java ?Core Java
Ans. Using new operator - new xyzClass()

Using factory methods - xyzFactory.getInstance( )

Using newInstance( ) method - (Class.forName(xyzClass))emp.newInstance( )

By cloning an already available object - (xyzClass)obj1.clone( )

  Sample Code for object initialization using clone

  Sample Code for object initialization using getInstance

 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve     java   oops   object creation   new operator   class.forname   cloning   ebay     Intelligrape  Infosys  Polaris  British Telecom (BT)  Vyom Labs  Deutsche Bank  HCL Technologies   Genpact  Thomson Reuters      expert

Related Questions

  Describe what happens when an object is created in Java ?
  Does Constructor creates the object ?
  Difference between new operator and Class.forName().newInstance() ?
  Difference between Class#getInstance() and new operator ?
  In a case where there are no instance variables what does the default constructor initialize?
 How can we prevent duplicate object creation in Java?

  Q2. What is a cookie ?Java EE
Ans. A cookie is a small piece of text stored on a user's computer by the browser for a specific domain. Commonly used for authentication, storing site preferences, and server session identification.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve     cookie   javascript   web application   session management   browser   j2ee     Wayfair  OpenBet  Akamai  Alicen  HCL Technologies  Tata Consultancy (TCS)  Wipro  Infosys  Mindtree  Global Logic  Accenture  Lexis Nexis  Elsevier  Vyom Labs  SVV Geotech      basic        frequent

Related Questions

  What is session tracking and how do you track a user session in servlets?
  What are different types of cookies ?
  what is the use of cookie and session ? and What is the difference between them ?
  Why using cookie to store session info is a better idea than just using session info in the request ?
  http protocol is by default ... ?

  Q3. What is collection framework in Java ?Core Java2017-12-27 19:17:14

Ans. The Java collections framework (JCF) is a set of classes and interfaces that implement commonly reusable collection data structures. Although referred to as a framework, it works in a manner of a library. The JCF provides both interfaces that define various collections and classes that implement them.

  Sample Code for Map

  Sample Code for HashMap

  Sample Code for Treemap

  Sample Code for set

  Sample Code for hashset

  Sample Code for treeset

  Sample Code for list

  Sample Code for arraylist

  Sample Code for linkedlist

  Sample Code for queue

  Sample Code for priorityqueue

  Sample Code for concurrenthashmap

  Sample Code for vector

  Sample Code for stack

 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve     collections     Tata Consultancy (TCS)  HCL Technologies  Ancestry  Cerner  Accenture  Global Logic  MasterCard  Vyom Labs      basic        frequent

Related Questions

 If you are given a choice to use either ArrayList and LinkedList, Which one would you use and Why ?
  What is the difference between ArrayList and LinkedList ?
  Difference between TreeMap and HashMap ?
  Difference between HashMap and Hashtable?
  Can you provide some implementation of a Dictionary having large number of words ?
 Collections.sort can only be performed on ..

a. Set
b. List
c. Map
d. Any Collection implementation
  Difference between Vector and ArrayList ?
  What are strong, soft, weak and phantom references in Java ?
  What are the Disadvantages of using Collection Classes over Arrays ?
  Which of the following collections stores its elements in insertion Order ?

a. HashMap
b. TreeMap
c. LinkedHashMap
d. LinkedMap

Subscribe to Java News and Posts. Get latest updates and posts on Java from
Enter your email address:
Delivered by FeedBurner

comments powered by Disqus

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked:

X Close this

X Close this

Help Us Improve.
Please share your
interview experience.

Company Name:   

Questions Asked: