Interview Questions

Q:

What is the difference between creating String as new() and literal ?

Answer

When we create string with new() Operator, it’s created in heap and not added into string pool while String created using literal are created in String pool itself which exists in PermGen area of heap.



String s = new String("Test");

does not put the object in String pool , we need to call String.intern() method which is used to put them into String pool explicitly. its only when you create String object as String literal e.g. String s = "Test" Java automatically put that into String pool.

Report Error

View answer Workspace Report Error Discuss

1 2573
Q:

A capital expenditure results in a debit to 

A) an asset account B) a liability account
C) an expense account D) a capital account
 
Answer & Explanation Answer: A) an asset account

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Bank Interview
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

0 2568
Q:

The multi part identifier could not be bound is

Answer

One of the most common errors that you might face in join statements is 


 


Server: Msg 4104, Level 16, State 1, Line 1
The multi-part identifier could not be bound.


 


A multipart identifier is any description of a field or table that contains multiple parts - for instance MyTable.SomeRow - if it can't be bound that means there's something wrong with it - either you've got a simple typo, or a confusion between table and column. It can also be caused by using reserved words in your table or field names and not surrounding them with [].


 


The main reason for this error is that the source table cannot be found, for example if you have statement such as Table1.OrderDate, and then if you get error above, this means that Table1 cannot be found in the query. Sometimes you can see that source table exists in the query, but T-SQL cannot understand it, especially when you write join statements.

Report Error

View answer Workspace Report Error Discuss

0 2568
Q:

What are Child Selectors ?

Answer

A child selector is used when you want to match an element that is the child of another specific element.
The parent and child selectors are separated by spaces.
The following selector locates an unordered list element within a paragraph element and makes a text within that element bold.


p > ul {font-weight: bold;}

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

4 2566
Q:

What is final method?

Answer

Final method is a method defined in the super class with final modifier.


We cannot overriding final method of super class in the sub class.


EX:


 Class Sample {


   final void funOne() {


   }


   void funTwo() {


   }


}


Class Sub extends Sample {


  void funOne() { // overriding is not allowed


  }


  viod funTwo() { //overriding is allowed


  }


}

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 2565
Q:

What is autostatus in IDMS?

Answer

Autostatus is a protocol mode which causes the expansion of each DML statement to include a 'perform IDMS-Status' statement.

Report Error

View answer Workspace Report Error Discuss

0 2564
Q:

When someone clicks your ad, the actual amount you’re charged will be

A) The minimum needed to hold your ad position, under the maximum cost-per-click limit B) The minimum needed to hold your ad position or 50% of your maximum cost-per-click bid, whichever is greater
C) The minimum needed to hold your ad position but never more than 120% of your maximum cost-per-click bid, whichever is greater D) The minimum needed to hold your ad position but never less than 50% of your maximum cost-per-click bid, whichever is greater
 
Answer & Explanation Answer: A) The minimum needed to hold your ad position, under the maximum cost-per-click limit

Explanation:

When_someone_clicks_your_ad,_the_actual_amount_you’re_charged_will_be1551856891.png image

When someone clicks your ad, the actual amount you’re charged will be " The minimum needed to hold your ad position, under the maximum cost-per-click limit ".

Report Error

View Answer Report Error Discuss

4 2563
Q:

What are the basic concepts of object oriented programming?

Answer

It is necessary to understand some of the concepts used extensively in object oriented programming.These include


Objects
Classes
Data abstraction and encapsulation
Inheritance
Polymorphism
Dynamic Binding
Message passing

Report Error

View answer Workspace Report Error Discuss

Subject: C++

0 2563