Java Interview Questions & Answers Part1

1)What are Web Services?

Web services are business logic components which provide functionality via. Internet using standard protocols such as HTTP. It is created using Soap or Rest. For E.g. in Google search page we got results like feeds, advertisement , news etc., from multiple sites, it is by web services which enables various websites to talk to each other and share data between them.

2)Differences between Soap vs. Rest.

SOAP – “Simple Object Access Protocol”

  • SOAP is a method of transferring messages, or small amounts of information, over the Internet. SOAP messages are formatted in XML and are typically sent using HTTP (hypertext transfer protocol).

Rest – “Representational state transfer”

  • Rest is a simple way of sending and receiving data between client and server and it doesn’t have very many standards defined. You can send and receive data as JSON, XML or even plain text. Its light weighted compared to SOAP.

3)How to create a DB connection.

Five steps to query a database:

  • Load the driver
  • Get connection
  • Query the database
  • Process the result set
  • Close connection

4)Differences between prepared statement and callable statement.

  • Prepared Statement – Execute a precompiled SQL with/without input parameters.
  • Callable Statements – Execute a call to database stored procedure.

5)Difference between System. Out and System. Err.

System. Err is a PrintStream. System. Err works like System. Out except it is normally only used to output error texts. Some programs (like Eclipse) will show the output to System. Err in red text, to make it more obvious that it is error text.

6)What is Key Store?

Java Key Store (JKS) is a repository of security certificates, either authorization certificates or public key certificates – used for instance in SSL encryption.

7)Write a Java program to print Fibonacci series.

Click here for Sample Program.

8)What is immutability in java?

Once created the objects state cannot be changed .E.g. string

9)How to create read only values in java.

Using final keyword

Final int a=4;

10)Difference between Hashmap and Hashtable.

  • Hashtable is synchronized but Hashmap is not.
  • Hashtable can’t contain null values but Hashmap permits null values.

11)Difference between Iterator and Enumeration.

  • Iterator has remove () method but Enumeration do not have.
  • Iterator is used to Add and remove object, enumeration is used to traverse and fetch objects.
  • Iterator is used to manipulate text but Enumeration is used for read-only access.

12)Define Class-object relationship.

Object – Objects have states and behaviors. Example: A dog has states-color, name, and breed as well as behaviors -wagging, barking, and eating. An object is an instance of a class.

Class – A class can be defined as a template/ blue print that describe the behaviors/states that object of its type support.

Class is a blueprint while objects are actual objects existing in real word.

Get More Questions Related to

Java Training inMarathahalli

Python training inMarathahalli

Data science training inBTM Layout

13)What to test while testing Client-server application.

  • Performance
  • Load
  • Integration between multiple components
  • MUT
  • SOAK testing
  • Multiple clients for same server

14)How to Read/write excel file in Java.

Click here for Sample Program.

15)Write a java program to count number of unique words separated by comma (,) and their occurrence from text file.

Click here for Sample Program.

16)Difference between int & INTEGER.

int is a primitive type. Variables of type int store the actual binary value for the integer you want to represent. int.parseInt(“1”) doesn’t make sense because int is not a class and therefore doesn’t have any methods.

Integer is a class, no different from any other in the Java language. Variables of type Integer store a reference to Integer objects, just as with any other reference type. Integer.parseInt(“1”) is calling the static method parseInt from class Integer (note that this method actually returns an int and not an Integer).

int type Declaration:

int count;

  • count is a primitive
  • count stores 32 bits of information (in the range Integer.MIN_VALUE to Integer.MAX_VALUE)
  • Literal integers (e.g. 123 or 0x7b) are of type int

Integer type Declaration:

Integer count2;

  • count2 is an object reference
  • count2 points to an object of type java.lang.Integer (or to null)
  • The object count2 points at has an int member variable as described above.

To be more specific, Integer is a class with a single field of type int. This class is used where you need an int to be treated like any other object.

17)Difference between Serialization and synchronization.

  • Serialization is a process by which object instance is converted into stream of bytes.
  • Synchronization ensures that object data is into accessed by multiple threads at the same time.

18)Difference between sleep and wait. Which is better?

  • Wait is better than sleep.
  • Sleep cannot be waken but Wait can be woken using notify method.
  • Sleeps do not release lock but Wait releases lock.

19)Difference between Array and ArrayList.

  • Array size is fixed at the time of declaration. We can’t modify it.
  • ArrayList size is not fixed at the time of declaration. We can change its contents.

20)Difference between Set and Map.

  • Set – It is also an interface to represent linear collection with no duplicates. Order of insertion is not maintained. Example:- Harshest, Tree Set.
  • Map – It represents an indexed collection i.e. key-value pairs. Example: – Hashmap.

21)What is AJAX?

  • AJAX stands for Asynchronous JavaScript and XML. AJAX is a new technique for creating better, faster, and more interactive web applications with the help of XML, HTML, CSS and Java Script.
  • Ajax uses XHTML for content and CSS for presentation, as well as the Document Object Model and JavaScript for dynamic content display.
  • Conventional web application transmit information to and from the sever using synchronous requests. This means you fill out a form, hit submit, and get directed to a new page with new information from the server.
  • With AJAX when submit is pressed, JavaScript will make a request to the server, interpret the results and update the current screen. In the purest sense, the user would never know that anything was even transmitted to the server.
  • XML is commonly used as the format for receiving server data, although any format, including plain text, can be used.
  • AJAX is a web browser technology independent of web server software.
  • A user can continue to use the application while the client program requests information from the server in the background
  • Intuitive and natural user interaction.
  • No clicking required only Mouse movement is a sufficient event trigger.
  • Data-driven as opposed to page-driven

Original Source from : Java Training in Bangalore


Infographic: DevOps Strategies for Mobile App Development – Besant Technologies

DevOps is not a technique or a procedure, but rather a way to deal with empowering consistent application conveyance from beginning to generation. Prior to the rise of DevOps, it was regular for big business associations to keep up discrete advancement and operations groups. The absence of correspondence and coordinated effort between groups was from numerous points of view a test to development and advancement in the endeavor. The division of advancement and operations was vexing for undertakings that received spry improvement, as utilizing nimble approach expanded the quantity of new application works to create, test, and send by a few requests of greatness. Rather than conveying another form to the operations group like clockwork, designers could create constructs like clockwork and convey discharge applicants at considerably higher frequencies.Get more details about Devops Training in Bangalore.

Learn Infographic: DevOps Strategies for Mobile App Development

Devops Training in Bangalore
Devops Training in Bangalore

Learn more courses details about

Software Testing Training in Bangalore 

Java Training in Bangalore

Python Training in Bangalore   

AWS Training in Bangalore

Devops Trainingin Bangalore
Devops Trainingin Bangalore

Original source from :

Introduction of Devops


DevOps (a cut compound of “software DEVelopment” and “information technology OPerationS“) is a term used to refer to an arrangement of practices that underscore the joint effort and correspondence of both programming designers and information technology (IT) experts while computerizing the procedure of software Deliver and .Get More Interesting Details & Learn Devops Training in Bangalore.

Why Need  Devops

The “2016 State of DevOps Report” makes it plain and straightforward that organizations that fuse DevOps rehearses accomplish more. As per the report, high-performing IT associations send 200 times more every now and again than low entertainers, with 2,555 times speedier lead times. They have 24 times quicker recuperation times and three times bring down change disappointment rates. High-performing IT groups invest 50 percent less energy remediating security issues and they invest 22 percent less time in impromptu work and modify, the report states.

Benefits of DevOps

Organizations that join DevOps practices accomplish all more done, plain and straightforward. With a solitary group made out of cross-practical individuals all working in coordinated effort, DevOps associations can convey with most extreme speed, usefulness, and advancement.

There are Technical Benefits:

  • Persistent software conveyance
  • Less complexity
  • Quicker determination of issues

There are Social Benefits:

  • More joyful, more productive teams
  • Higher representative engagement
  • More noteworthy expert improvement openings

There are Business benefits:

  • Speedier conveyance of components
  • More steady working situations
  • Enhanced correspondence and coordinated effort
  • More time to develop (as opposed to settle/keep up)

Now you can get enough knowledge about Devops Training in Bangalore. In our Besant Technologies offer Placement training & taught by Experienced Professionals. We have isolate HR group experts who will deal with all your interview needs. Improve your career @ Besant Technologies. Dial – +91-7624941772/74
In our other courses details..

Original Source from :

Scope of Hadoop Nowdays

Hadoop Training in Chennai         
  • Hadoop preparing will make one a specialist in HDFS, MapReduce, Hbase, Zookeeper, Yarn, Oozie, Flume and Sqoop utilizing ongoing use cases on Retail, Aviation, Tourism, Finance space.
  • This course is venturing stone to your Big Data excursion and you will get the chance to chip away at a Big information Analytics extend subsequent to choosing an informational index of your decision.
  • Detailed comprehension of Big Data examination. Advertise for Big Data examination is developing over the world and this solid development design converts into an incredible open door for all the IT Professionals.
  • Practice genuine ventures utilizing Hadoop and Apache Spark. Continuous Analytics is the new market buzz and having Apache Spark abilities is a very favored learning way after the Hadoop preparing
  • Mastering Hadoop Training in Chennai with organization exercises like bunch overseeing, observing, organization and investigating and arranging ETL apparatuses like Pentaho/Talend to work with MapReduce are a thing without bounds.
  • Big Data is quickest developing and most encouraging innovation for taking care of substantial volumes of information for doing information examination. This Big Data Hadoop Training Course will help you to be up and running in the most requesting proficient abilities.
  • Hadoop experts are among the most generously compensated IT experts today with pay rates running till $85K (source: in reality work gateway), and the market interest for them is developing quickly.
  • Gives an edge over various specialists in a similar field, as far as pay bundle and Confirms that you are aware of the latest components of Hadoop.
  • Hadoop preparing from a set up instruction foundation helps you in getting a Hadoop Certification Training course which thus helps you manufacture a yearning for vocation in front line advancements.
Hadoop Training in Chennai         

Industrial Application of Hadoop

  • Retail industry: Needs Hadoop for associating with clients betterly, anticipating their purchasing examples and inclinations.
  • Saving money and Finance: Implements Hadoop to discover answers for back off workloads and enhance effectiveness.
  • Fabricating: Needs to oversee information utilizing a proficient instrument that can store information from different sources and streamline distinctive procedures from supply to gear control forms.
  • Social insurance: Involves colossal measure of information relating to patient records, clinical and money related information, and therapeutic history to give some examples.
  • Sports: Sports Industry uses Big Data for diversion investigation, player barters, broadcasting past patterns, and well being and wellness administration of player.
  • Other Training Courses like
    Selenium Training in Chennai
    Android Training in Chennai
      Dot net Training in Chennai

Get Ideas To Learn The Dot Net Course Over The Online With No Risk

Dial +91-9962528294

To obtain the great skill and placement in the Dot Net language, obsessively the student needs to hire Dot Net Training in Chennai. This training center offers quality education on the major concept, as result the student can have ability to design all sort of application for the commercial and other needs. Here the Dot Net Trainers filled with update and long years of experience so they can share everything on the student what they learn in previous years. now the online act as important role in providing online training for Dot net course which bring high comfort for the people who work under the busy schedule. This course is exact designed to learn exact concepts and other features of Dot net coding, developing the web application, debugging and other windows development.

What Dot net online training offer to the candidate?
 The Dot Net framework is development of the framework by the Microsoft and it runs mainly on the Microsoft windows. Then it is filled with the huge library and it delivers the language interoperability on the major programming language. On other word, it can be said technology, which support to run and build the application of the next level and provide XML web service. Therefore, the student can go with the Dot Net Training over the online that brings high comfort for the student to learn as per their needs.

 Here the frame work is commonly used for the major application which are listed below

  • Console applications
  • Mobile applications
  • Web applications
  • Windows GUI applications
  • Windows Services
  • XML web services

Hence, the candidate can learn such Dot Net course online as per your schedule and it is open at every time provide the online classes. Even the student can learn from the basic level to high level so they can update the skill on such the field to design the all sort of the application in the fine manner.

 Object of the Dot NET course:

  •  Well understand the both Dot Net and Frame work
  •  Support to develop the application via ADO.Net
  •  Let to design application with the ASP.Net
  •  Allow to design application via with the N Tier Architecture
  •  Make us of web services , WCF to design the distribute application
  •  Design the complex and easy application using this Dot Net frame work
  •  Learn the object orientation concept and much more.

 Hence, the student can hire the chennai location to learn Dot Net Online Training in comfort manner. The online training provides videos class and other practical class over the online, which let to update the skill in the field of the programming language.
 On completing the course, the student will be get reward by offering the certification for the Dot Net course. 
If you want to Learn courses & get more details About Android Training in Chennai |  Hadoop Training in ChennaiSelenium Training in Chennai


Unbelievable facts that everyone must know about Dot Net

Nowadays Dot Net software framework is highly ruling the Microsoft Windows. This is, however; the software has been developed by Microsoft and gives extensive library framework activities forever. Of course, the Dot Net offers language interoperability for several languages and supportive for exception handling. The services provided by this software are exceptional handling, memory management security and others. In fact, the domains are sold for cash which allows the users to access for programming. They are much popular domain extensions that deliver extensive programming knowledge to the users. Most institutes are providing Dot Net Training in Chennai which should consist of different facts and incredible things about it. They are described below as follows.


Dot Net is a primary domain which existed from a long time. But, a few people know about this and using it still. Besides, there are many domains registered at the top level and use it for the website creation. Those domains immediately buy a dot net site and increase the visibility to the site.

More registered domains

Over 15 million registered domains use this Dot Net training that was taken from 1.5 million users. However, it let the users double the sites and enhance it based on the language supportive domain forever.

Rely on other languages

If you are a code developer, you can use the Dot Net online Training from other Java and related programming systems. Moreover, the Dot Net has the choice of language, and thus training provides basic things in a powerful way.

More speed in training

With the help of dot net training, the coder can start coding by faster skills and grab attention on real complication process. This is pretty faster when compared with other programming software. Naturally, it eliminates the startup delays entirely once you start coding it.

Easy to develop programs

The user efficiently codes the programs with the help of dot net training than any other languages. This is the main reason that much 3D game engines and other compilers use the dot net framework.

Revolutionary language

It has brought a revolution on the Linux desktops in the form of Mono. They show with the great applications which will bring additional features to work on it. However, this training provides everything related to the coding and thus providing revolution on the programming skills.

Use of Open Source

The dot net software CLI or Command Line Interface use the Open Source. It is developed by independent and standard results operating by single sources. This is furthermore the codes are available to all and can be attained by using specific training.

User friendly

If you enroll in the dot net training courses, they provide comfortable as well as user-friendly programming languages for all. It makes you easier to learn the program and thus to give the right platform for learning the training from online. Therefore, the training provides everything related to the source program and enroll in the particular programming language forever.

Learn More courses Details………..

Android Training in Chennai

Selenium Training in Chennai

Hadoop Training in Chennai

or Call  : +91 – 9962504283

Selenium Training & Job Opportunity

What is this course about?

The Selenium training at ‘TIT Academy’ has been designed to enhance your knowledge, with a goal to make you a pro of this testing process. We help you learn everything about the Selenium IDE, Selenium Webdriver, its installation process, and its various other components and tools, which are used for advanced software testing. You will also be provided with live projects and hands-on for the better understanding of the subject material. We have a team of professional Selenium experts, who will guide you on Selenium and Appium modules from basics to advance level. It must be noted that at TIT Academy, we provide both Classroom and Online Selenium Training.

htcHXaFdW34U (1)

What are the course objectives?

The online Selenium training in Chennai @ TIT Academy has the below mentioned objectives:-

* To help you learn Selenium Automated Testing and its advantages.

* To facilitate in depth learning of Selenium RC.

* We help you learn all the ways to ‘Deploy Selenium IDE’ functions and commands.

* We provide advanced study of SIKULI, JUNIT, TestNG Plugin in Eclipse. More Details……….

Who should do this course?

Our ‘Selenium Training in chennai ‘ course has been prepared in such a way that it can be pursued by anyone having basic knowledge of computer. The knowledge of C or Java can be beneficial but not mandatory. Apart from freshers and technical graduates, the course is highly beneficial for professionals like:-

* Software Developers, Testers, And QA Engineers.

* System Analysts, System Administrators, BI and ETL professionals.

Job Opportunity for Selenium Professionals?

Being an open-source software, today, Selenium is used extensively by most of the companies in the IT field. The advantages like – generating test scripts, reusing the scripts, validating functionality and automating the test process and remote testing the software codes, have played the most pivotal role in making it one of the most efficient testing software available More ………………………..

Selenium Certification

After the completion of Selenium training in Chennai program, you will be assigned some real-time projects to test your skill and knowledge about the Selenium software. After successful completion of the assigned projects, you will be given a certificate of excellence, recognized by all the IT companies of this globe. If by any chance, your performance is not at par, we will further assist you until or unless you excel in the course.

Visit @ TIT Academy

Call @ +91 – 9962504283

Original Source from :

Why Learn Dot Net Programming Framework?

Why Learn Dot Net Programming Framework?

Today, we live in a world where the latest technology is emerging and replacing the old ones in very furious and brutal way. But, amidst all the changing scenario, the two decades old ‘Dot Net Framework’ is still relevant and going really strong. It is because of the diverse and widespread use of Dot Net in the development of modern day apps and softwares.

For basic understanding, the Dot Net is a programming framework developed by the Microsoft to assist developers in creating apps easily and more efficiently. Developers uses Dot NET package for an orderly access to databases, web services, and other communication tools for the creating apps running on Windows. In lieu to avail the framework adequately, you require a proper Dot Net training (If you don’t have any), and if you still have any doubts, the below mention points will help you to clear off your head.

*`Dot Net comes with a large class library called as ‘Framework Class Library’ which helps in interacting two different programming languages to operate on the same kind of data structure.

* The Programs that are written for Dot NET Framework runs in a software environment named Common Language Runtime (CLR), which provides security, memory management, and other occurrences happening during execution.

* It’s a framework that allows programmers to call previous codes, hence writing a new one explicitly is not mandatory.

* Being a common language infrastructure (CLI), it provides a language independent platform for the development of software and apps.

* Dot NET Framework comes with Console support, Windows Forms, Windows Presentation Foundation, ASP.NET and ASP.NET Core applications by default that can be used to create applications.

* Microsoft has incorporated the C++/CLI in Visual Studio 2005, that is used for compiling Visual C++ programs to run within the Dot Net Framework.

* Dot Net Framework provides means to access functions implemented in newer and older programs that can be executed outside the Dot Net Framework.

* Dot Net has been enabled with Common type system (CTS) that defines all possible data types and programming constructs supported by CLR and the way it may or may not interact with each other while CLI specification.

* CTS and the CLR used in Dot Net Framework helps in enforcing safety and prevents ill-defined cases, wrong method invocations, and memory size issues while accessing a code.

* Though, it is primarily used on Windows but is efficient to perform cross-platform as well.

* Dot Net Framework comes with its own security mechanism with two general features known as Code Access Security (CAS), and validation and verification.

* It also manages the memory automatically by freeing it with the help of CLR.

Hope that above described points will felicitate you with enough reason to pursue a proper Dot Net Training to make your self a pro developer. There are a large number of online and offline training institute to help you in this voyage. But, if you choose us for this, being a Chennai based premier Dot Net training provider (both online and offline), would be more than happy to assist in all possible ways in your endeavor.

Original Source – Besanttechnologies.comYjbf3x2UuASj

Top Interview Questions for Dot Net

Besant Technologies Microsoft .NET course is a 30 hours course, which covers every one of the ideas that made .NET presumably the most well- essential known Microsoft Framework. Beginning from the nuts and bolts i.e. Structure Architecture, make the first and applications. We utilize ASP.NET and IIS for making the client view and making your Web Application more secure. Toward the finish of the course, we will likewise make Web Applications and Web Services utilizing MS.NET Framework.

Interview Questions for Dot Net

1) What is .NET?

NET is a fundamental piece of numerous applications running on Windows and gives regular usefulness to those applications to run. This download is for individuals who require .NET to run an application on their PC. For engineers, the .NET Framework gives a far reaching and reliable programming model for building applications that have outwardly dazzling client encounters and consistent and secure correspondence.

2) Which strategy do you use to implement rubbish accumulation in .NET?

The System.GC.Collect() strategy.

3) What is C-Sharp (C#)?

C# is a sort safe, oversaw and question arranged language, which is assembled by .Net system for creating intermediate language (IL).

4) What is an IL?

Moderate Language is otherwise called MSIL (Microsoft Intermediate Language) or CIL (Common Intermediate Language). All .NET source code is assembled to IL. IL is then changed over to machine code at the point where the product is introduced, or at run-time by a Just-In-Time (JIT) compiler.

5) What is code get to security (CAS)?

Code get to security (CAS) is a piece of the .NET security show that counteracts unapproved access of assets and operations, and confines the code to perform specific errands.

Now This is the best TIME to lead your bright future. In our Besant Technologies provide good training & arrange placement opportunities for training Students. Don’t miss the Chance. All the Best for your Life & entering Bright and Successful Future.

Dot Net Applications & Advantages

Dot net is a software Framework & developed by Microsoft Company. Dot net software also called Visual Studio. Every day learn something new one then improve your knowledge. This is the best TIME to lead your bright future. In our Besant Technologies provide good training. More Details……………….



  • Engineers can utilize .NET to plan applications for particular business capacities, for example, back, CRM, supply administration and so forth.
  • It can likewise be utilized to re-plan applications to serve developing needs of an association
  • Gives stages, devices, and a programming domain for tending to the outline and general administration of disseminated and multi-layered applications
  • Gives individual and business clients with a flawlessly interoperable and Web-empowered interface for applications and processing gadgets
  • Permits the whole scope of registering gadgets to cooperate
  • Gives modified get to and conveyance of items and administrations to the client from a solitary beginning stage for overseeing different applications, for example, email
  • Prepared access to data and multi-client, multi-gadget synchronization
  • Coordinates different correspondences media, for example, email, fax and telephones


  • It permits the utilization of numerous dialects
  • It has flat versatility
  • .NET makes a bound together environment that permits engineers to make programs in C++, Java or Virtual Basic
  • Interfaces effectively with Windows or Microsoft
  • All instruments and IDEs have been pre-tried and are effectively accessible in the Microsoft Developer Network.
  • UI best practices are more steady
  • Dialect coordination is consistent, as you can call techniques from C# to VB. NET
  • Dot net Visual Studio has solved the DELL HELL Problem.

Visit @ TIS Academy