Interview Questions and Answers for 'GS Lab' | Search Java Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com
Share

Search Interview Questions


 3152 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 'GS Lab' - 2 question(s) found - Order By Newest

Very frequently asked. Among first few questions in almost all interviews. Among Top 5 frequently asked questions. Frequently asked in Indian service companies (HCL,TCS,Infosys,Capgemini etc based on multiple feedback )
  Q1. Difference between == and .equals() ?Core Java
Anonymous
Ans. "equals" is the method of object class which is supposed to be overridden to check object equality, whereas "==" operator evaluate to see if the object handlers on the left and right are pointing to the same object in memory.

x.equals(y) means the references x and y are holding objects that are equal. x==y means that the references x and y have same object.

Sample code:

String x = new String("str");
String y = new String("str");

System.out.println(x == y); // prints false
System.out.println(x.equals(y)); // prints true

  Sample Code for equals

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


   Like      Discuss      Correct / Improve     java   string comparison   string   object class   ==    equals   object equality  operator     Ebay  Cerner  GuideWire  Expeditors Associate  Revature  SAIC  ValueLabs  Realty Redefined  Bank Of America  Capgemini  HCL Technologies  Goldman Sachs  Symmetric Corp  Backstop Solutions  Frontier  IQOR   Science  Vanguard  eClinicalWorks  Experticity  Blue Cross and Blue Shield of Kansas  ComTrade  Banja Luka  Overstock.com  Intrasoft International  IBM  Apex Systems  infoview technologies  Ebix  Cumulus Systems  Nakisa  United HealthGroup (UHG)  Sopra Steria  TrueCaller  Mphasis  Amdocs  T & A Hr Solutions  End2End Catalyst  Code Garage Tech  IQuest Management Consultants  Indianmesh pvt ltd  Netsmartz  Meander Software  UrbanPro.com  Netrovert Software  T & A Hr Solutions  Zscaler  Maven Wave Partners  Basware India  Emerson  GCE solutions  SmartData Enterprise  Shivark Virtual Academy  FinXera  Sampoorna Consultants  Samridhi  KKA Technologies  bebo technologies  Closeloop Technologies  DamcoSoft  Swar Yantra Technologies  SK VedaInfo Universal  Trantor Software  IT HAT Consulting  Kindlebit Solutions  Mann McGlynn  AmrtData Enterprises  Riconz Technologies  Embryo Software Solution  Corporate Stalwarts  Varite  Mirror Consultancy Service  Wing Global IT Service  Regence  Adpearance  IGNW  Centizen  Flexton  Syntel  Kaiser Permanente  SkiData  New Relic  McKesson  Finastra  Pivotal  UST Global  Morgan Stanley  Kroger  Genesys  Guardian Life  SynergisticIT  Leidos  Expeditors Associate  Polycom  Compass  Point ClickCare  Expedia  Equal Experts  Dimentrix  Intellect Design Arena  Epam Systems  Qualys  Instacart  ThoughtWorks  Maxgen Technologies  Aayansh Germinate  Principal Financial Group  NineScript Technologies  Nihilent  infrasoft technologies  e-Zest Solutions  Krawler Inc  FundTech  BNT SOFT  SAPsphinx Infotech  KinderTouch  Accede Software Solutions  LeadLake  Emerson  Xoriant  Citrix  Anonymous Content  GS Lab  Thermax  Saama Technologies  Fresherworld.com  Nityo Infotech  Sanofi  Innoplexus  Sears IT & Management Services   National Stock Exchange of India  Accelya Kale  Tudip Technologies  ITSource Technologies  Sela Technology Solutions  Eternus Solutions  Raja Software Labs  Leo TechnoSoft  Shubham Housing Development Finance  Serene Corporation  Leo Technosoft  Questionpro  Sparken IT Solutions  Capsilon  JetSynthesys  MangoSpring  Subway  Arezzo Sky  Lenco Diagnostic Laboratories  Finlogic Technologies  Maxxton  Cerillion  Applus+  XOYAL  Acloudzyn Technologies  ITYX  Tej IT Solutions  Transworld Compressor Technologies  Deskera  Ebaotech  Kahuna Systems  Kimaya Infotech  SSP Technology  Boston Byte  Bonellisoft  Rack Infotech  Intellection Software and Technologies  OMVSAB IT Solutions  ProductDossier  Soft Infology  Systems Plus Transformations  StackMint  HeadInfotech India  EffortSys  KasNet Technologies  Java City  iSynergy TechSys  Unisoft Technologies  Servient  ThinkQuotient Software  Medline Industries  Ascent Cyber Solutions  Proto-T Solutions  Tinker Technologies  Censhare  Proto-T Solutions  Henx International Technologies  AlightHub Consulting Services  Perpetual Infotech  BestoSys  Infiniti Infosystems  Torqus  Spectrum Tech System  OreInfo  Sanvi Softech  Neptune Solutions  XTime  Web Hub Technology  Coin Technologies  Paramount Pictures  Rocklike DMS  Implant Technosoft Solutions  Nabla Infotech  Predikly  Godwit Technologies  Kanaka Consulting  Aarnum Technologies  Ganesh Kapure  Abhinav Digicompsoft Services  Shoffex.com  Online Training Solutions  A Plus Tree  OMM Software Innovation  Tanish Infotech Solution  Zinist Software  Mobile Sutra  Playpixel Infosystem  SunGuard  Nihilent  Siemens PLM Software  Maxgen Technologies  Nitor Infotech  Mediaocean  Yagna iQ  Sigma Systems  Ethon  The Permanente Medical Group  Reliance Industries  MindCraft Software  ABM Knowledgeware  Trutech Web Solutions  Nikhil R Gupta & Associates  eMeasurematics  NovelERP Solutions  Web Element Solutions  HDFC Bank  Qualcomm  Intellect Design Arena  Diebold Nixdorf  Sharekhan  Pepperfry  IRIS Business Services  Wind World  ZEDO  Loylty Rewardz Mngt  C2L Biz  Chenoa Information Services  Insolutions Global  Vakrangee Softwares  Celusion Technologies  Currencies Direct  Zenith System Solutions  Base Information Management  Exponentia DataLabs  Realty Redefined  Constaccent  Neoquant Solutions  Aureus Analytics  Planfirma Technologies  Pawaa Software  iBhejo  Fairfax County Virginia  American Conservation Experience  Hari Krishna Exports  Core Education & Technologies   Nishat Mills  Industrial Market Place  Krisnela Technologies  Swissclear Global  Samyak Software  Professional Access  Nexstep Infotech  Concerto Software  Viral Technologies  Silverwing Technologies  Gcom Software Inc  Accel Frontline  Atom Technologies  Blue Star Infotech  Cynapse  Datamatics Global Services  Flytxt Mobile Solutions  Persistent Systems  Onmobile Global  Trianz  Sasken  WNS Global Services  Tavant technology  Edz Infomatics      basic        frequent

Try 6 Question(s) Test


Related Questions

 What is the difference between = and == in Java ?
 How is == operator different for objects and primitive types ?
 What will be the output of following code

Integer x = 1;
Integer y = 2;
System.out.println(x == y);

What if you change 1 to "1" and Integer to String?


Basic and Very Frequently asked.
  Q2. What is Polymorphism in Java ?Core Java2016-11-06 09:10:54

Ans. Polymorphism means the condition of occurring in several different forms.

Polymorphism in Java is achieved in two manners

1. Static polymorphism is the polymorphic resolution identified at compile time and is achieved through function overloading whereas

2. Dynamic polymorphism is the polymorphic resolution identified at runtime and is achieved through method overriding.

  Sample Code for overloading

  Sample Code for overriding

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

   Like      Discuss      Correct / Improve     polymorphism  object oriented programming (oops)  oops concepts  oops concepts     Credit Suisse  Unbounded Solutions  Microsoft   Google  Purch  HCL Technologies  Tata Consultancy (TCS)  Wipro  Mathworks  Accenture  Accenture India  ZonOff  ZapCom  Addteq  Priceline.com  Acute Informatics  Trimax IT Infrastructure & Services   USAA  HCL Technologies  FDM Group  AppEnsure  Inov8  TIAA  Revature  Lockheed Martin  ScotiaBank  Algorhythm Tech  Aurus  Xpanxion  Bitwise Pune  GS Labs  Bitwise India  CRIF  Saggezza  Synchrony  Micro Focus  Mindtree  Zycus  Capgemini  ZapCom Group  Infosys Technologies  SLK Group  Intuit Bangalore  Quickr  Comviva Technology  Altimetrik  IDEALINVENT Technologies  Kewill  coMakeIT  Vekomy Technologies  Eze Software  State Farm  Rolta  State Street  High Radius  Cerner  TIBCO  3i Infotech  Goldman Sachs  ITC  abhra  InteractCRM  Polaris  Naggaro  Siemens  Hexaware Technologies  Skillnet solutions  Logixal Solutions Mumbai  Naaptol Mumbai  Logixal Solutions  NSETECH  Mastek Mumbai  AppAmplify Noida  HexaView Technologies  Wipro  Wittybrains Software Technologies  Meenakshi Noida  Eastern Software Systems Noida  MediaAgility Gurgaon  Daffodil Software  Oracle Gurgaon  Kellton Tech Gurgaon  Bharti Airtel Gurgaon  IHS Markit Gurgaon  Sinew Gurgaon  Grappus Gurgaon  Erricson Gurgaon  Deloitte  Accenture  Accenture India  Tech Mahindra  Patni Computers  L&T Infotech  Mphasis  Mindtree  Hexaware  Collabera  3i Infotech  IGate  Kpit Technologies  NIIT Technologies  Trianz  Persistent Systems  IT Asset  FIA-US  VanGuard  General Atomics      Basic        frequent

Try 2 Question(s) Test


Related Questions

  What are points to consider in terms of access modifier when we are overriding any method?
 If everything is an object , Cant we declare every object as

Object obj = new String();
  Shouldn't we make a class with all static members is its just expected to be executed as a standalone program with just one thread. Moreover Lets assume that there is no runtime Polymorphism required and there is no need for serialization ?
  Is this Polymorphism ?

Map<String, List<String>> inventoryManagerCountMap = new HashMap<String, ArrayList<String>>();
  When are static and instance methods resolved ? During compile time or Runtime ?
  Which of the following is not the difference between Singleton and Static class ( Class with static members only ) ?
 Which of the following do you think is the primary reason you would never use a static class even the application doesn't need multiple requests or threads ?

a. Serialization
b. Runtime Polymorphism
c. Lazy Loading
d. Memory
 How is static and dynamic polymorphism achieved in Java ?
 Why do we need polymorphism in Java ?




Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
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: