Interview Questions

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 2213
Q:

How to set cookies in PHP?

Answer

The function setcookie() is used to define a cookie that is to be sent along with HTTP headers. The cookie must be sent prior to any output from the script as is the protocol restriction. After setting the cookies, they can be used when the next page is loaded by using $_COOKIE or $HTTP_COOKIE_VARS arrays.

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

0 2212
Q:

Fixed Foreign Exchange rate can be changed by

A) SEBI B) Ministry of Finance
C) RBI D) All of the above
 
Answer & Explanation Answer: C) RBI

Explanation:

Fixed Foreign Exchange rate can be changed by Reserve Bank Of India (RBI).

Report Error

View Answer Report Error Discuss

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

1 2210
Q:

What are you looking for in your next job? What is important to you?

Answer

One of the interview questions you may be asked is what you are looking for in your next job. The interview wants to know whether your goals are a match for the companies needs.


You can begin your answer with this question: Tell me, Mr./Ms. Interviewer, what is a typical career path at OPL for someone with my skills and experience?


(Based on the answer you can then respond to the original question using the phrases from the answer to frame your response).


What is important to you? Two things are very important to me. One is my professionalism at work; the second is my family life.

Report Error

View answer Workspace Report Error Discuss

Subject: Work History

1 2210
Q:

Can you access non static variable in static context ?

Answer

A static variable in Java belongs to its class and its value remains the same for all its instances. A static variable is initialized when the class is loaded by the JVM. If your code tries to access a non-static variable, without any instance, the compiler will complain, because those variables are not created yet and they are not associated with any instance.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 2209
Q:

What exactly do you mean by UDP?

Answer

UDP (User Datagram Protocol) is a communications protocol that offers a limited amount of service when messages are exchanged between computers in a network that uses the Internet Protocol (IP).

Report Error

View answer Workspace Report Error Discuss

0 2209
Q:

Can a class be declared as protected?

Answer A class can't be declared as protected. only methods can be declared as protected.
Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 2209
Q:

What is Constructors and Destructors?

Answer

CONSTRUCTOR : PHP allows developers to declare constructor methods for classes. Classes which have a constructor method call this method on each newly-created object, so it is suitable for any initialization that the object may need before it is used.

DESTRUCTORS : PHP 5 introduces a destructor concept similar to that of other object-oriented languages, such as C++. The destructor method will be called as soon as all references to a particular object are removed or when the object is explicitly destroyed or in any order in shutdown sequence.

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

0 2208