35+ Accenture Java Interview Questions And Answers for Experienced

Spread the love

Table of Contents

Accenture Java Interview Questions

Why Do You Want To Work In This Industry / Company?

First you must attempt to persuade that this firm offers enormous alternative in lots of side i.e. new applied sciences implementation, the coverage of firm fits you want professionalism. Also you possibly can point out that you’re massive fan of this firm and its your dream firm. Basically present your all constructive angle in the direction of firm.

Which Location Do You Want To Work In And Why?

Give your personal alternative. Also point out a sound cause for why you have an interest for that location. The cause needs to be all the time constructive and clear. Example :- you possibly can assist your loved ones from this location.

Describe A Problem You Faced And How You Deal With It ?

You can describe any challenge you confronted throughout your challenge work within the group. And what the answer you will have carried out for that challenge.

What Are The Types Of Class Loaders In Java?

As per my information there are principally Three varieties of class loader like bootstarp classloader,extension class loader and system class loader.

Bootstrap Class Loader

Bootstrap class loader hundreds java’s core lessons like java.lang, java.util and so forth. These are lessons which can be a part of java runtime atmosphere. Bootstrap class loader is native implementation and they also might differ throughout completely different JVMs.

Extensions Class Loader

JAVA_HOME/jre/lib/ext comprises jar packages which can be extensions of ordinary core java lessons. Extensions class loader hundreds lessons from this ext folder. Using the system atmosphere propery java.ext.dirs you possibly can add ‘ext’ folders and jar recordsdata to be loaded utilizing extensions class loader

System Class Loader

Java lessons which can be obtainable within the java classpath are loaded utilizing System class loader

Accenture Interview Questions For Java Experienced

How To Read And Write Image From A File ?

You can use ImageIo.learn() and ImageIO.write() technique of javax.imageio bundle.

How Concurrenthashmap Works?

The fundamental design of ConcurrentHashMap is to dealing with threading. Basically it locks every of the field (by default 16) which may be locked independently and thread protected for operation. And it doesn’t expose the inner lock course of.

Can A Static Block Throw Exception?

Yes. We can throw checked exception.

What Is Difference Between Iterator Access And Index Access?

Basically iterator entry course of the traverse operation by way of every component, the place index entry course of entry direct the component by utilizing the index.

Why Character Array Is Better Than String For Storing Password In Java?

Because, character array shops knowledge in encrypted format which isn’t readable by human. But,the string shops the info in human readable format which isn’t safe.

What Is Daemon Thread In Java ?

A daemon thread is generally runs on background. And it doesn’t forestall the JVM from exiting when this system finishes however the thread continues to be operating.

What Is Java Reflection Api?

Reflection is among the strongest api which assist to work with lessons, strategies and variables dynamically. Basically it examine the category attributes at runtime. Also we will say it offers a metadata in regards to the class.

What Is The Difference Between Serializable And Externalizable Interfaces?

Both interfaces are used for implement serialization. But, the fundamental distinction is Serializable interface doesn’t have any technique (it’s a marker interface ) and Externalizable interface having 2 strategies akin to readExternal() and writeExternal(). Serializable interface is the tremendous interface for Externalizable interface.

What Is An Abstract Method?

An summary technique is a technique whose implementation is deferred to a subclass.

What Value Does Read() Return When It Has Reached The End Of A File?

The learn() technique returns -1 when it has reached the tip of a file.

Can A Byte Object Be Cast To A Double Value?

No, an object can’t be solid to a primitive worth.

What Is The Difference Between A Static And A Non-static Inner Class?

A non-static interior class might have object cases which can be related to cases of the category’s outer class. A static interior class doesn’t have any object cases.

What Is An Object’s Lock And Which Object’s Have Locks?

An object’s lock is a mechanism that’s utilized by a number of threads to acquire synchronized entry to the item. A thread might execute a synchronized technique of an object solely after it has acquired the item’s lock. All objects and lessons have locks. A category’s lock is acquired on the category’s Class object.

Accenture Java Developer Interview Questions

What Is The % Operator?

It is known as the modulo or the rest operator. It returns the rest of dividing the primary operand by the second operand.

When Can An Object Reference Be Cast To An Interface Reference?

An object reference be solid to an interface reference when the item implements the referenced interface.

Which Class Is Extended By All Other Classes?

The Object class is prolonged by all different lessons.

Which Non-unicode Letter Characters May Be Used As The First Character Of An Identifier?

The non-Unicode letter characters $ and _ might seem as the primary character of an identifier.

What Restrictions Are Placed On Method Overloading?

Two strategies might not have the identical identify and argument record however completely different return varieties.

What Is Transient Variable?

Transient variable can’t be serialize. For instance if a variable is said as transient in a Serializable class and the category is written to an ObjectStream, the worth of the variable can’t be written to the stream as an alternative when the category is retrieved from the ObjectStream the worth of the variable turns into null.

What Is Collection Api?

The Collection API is a set of lessons and interfaces that assist operation on collections of objects. These lessons and interfaces are extra versatile, extra highly effective, and extra common than the vectors, arrays, and hashtables if successfully replaces.

Example of lessons: HashSet, HashMap, ArrayList, LinkedList, TreeSet and TreeMap.

Example of interfaces: Collection, Set, List and Map.

What Is Casting?

There are two varieties of casting, casting between primitive numeric varieties and casting between object references. Casting between numeric varieties is used to transform bigger values, akin to double values, to smaller values, akin to byte values. Casting between object references is used to seek advice from an object by a suitable class, interface, or array sort reference.

What Is The Return Type Of A Program’s Main() Method?


If A Variable Is Declared As Private, Where May The Variable Be Accessed?

A personal variable might solely be accessed throughout the class through which it’s declared.

What Do You Understand By Private, Protected And Public?

These are accessibility modifiers. Private is probably the most restrictive, whereas public is the least restrictive. There isn’t any actual distinction between protected and the default sort (also referred to as bundle protected) throughout the context of the identical bundle, nevertheless the protected key phrase permits visibility to a derived class in a special bundle.

What Is Downcasting ?

Downcasting is the casting from a common to a extra particular sort, i.e. casting down the hierarchy.

What Modifiers May Be Used With An Inner Class That Is A Member Of An Outer Class?

A (non-local) interior class could also be declared as public, protected, non-public, static, closing, or summary.

How Many Bits Are Used To Represent Unicode, Ascii, Utf-16, And Utf-8 Characters?

Unicode requires 16 bits and ASCII require 7 bits. Although the ASCII character set makes use of solely 7 bits, it’s normally represented as Eight bits. UTF-Eight represents characters utilizing 8, 16, and 18 bit patterns. UTF-16 makes use of 16-bit and bigger bit patterns.

What Restrictions Are Placed On The Location Of A Package Statement Within A Source Code File?

A bundle assertion should seem as the primary line in a supply code file (excluding clean traces and feedback).

Spread the love