Interview Questions and Answers for 'Abc ltd' | Search Interview Question -

Search Interview Questions

 More than 3000 questions in repository.
 There are more than 900 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 'Abc ltd' - 3 question(s) found - Order By Rating

 Q1. Can we override the overloaded methods too ?Core Java
Ans. Yes. Both concepts are independent of each other. Overriding depends on the methods with same name and signature whereas Overloading on same name but with different signatures. All definitions of an overloaded method can be individually overridden in the derived class.

For example -

Class A has overloaded methods "public void myMethod(String str)" and "public void myMethod(int x)"

We can have derived class ClassB extends ClassA and hence can override both methods myMethod(String str) and myMethod(int x) in ClassB

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

   Like         Discuss         Correct / Improve     overloading  overriding     Asked in 1 Companies

Related Questions

  What are points to consider in terms of access modifier when we are overriding any method?
  Difference between Overloading and Overriding ?
 Any real life example of Overloading and Overridding ?
  How compiler handles the exceptions in overriding ?
  what is covariant return type?
  Overridden methods must have the same ...
  What is a Final Method ?
  Can we reduce the visibility of the inherited or overridden method ?
 How does java identifies which method to be called in method overriding or runtime polymorphism, when both methods share the same name and signature ?
  Can we reduce the visibility of the overridden method ?

Frequently asked question for intermediate developers. Frequently asked in HCL Technologies and EPAM.
  Q2. What is Volatile keyword used for ?Core Java
Ans. Volatile is a declaration that a variable can be accessed by multiple threads and hence shouldnt be cached.

  Sample Code for volatile

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

   Like         Discuss         Correct / Improve     java   oops   synchronization   volatile   java keywords     Asked in 42 Companies      intermediate        frequent

Try 1 Question(s) Test

Related Questions

  How does volatile affect code optimization by compiler?
 how is the internal code for the "volatile" implemented ?
 What are the different ways to avoid multi Threading related problems in Java ?
 Can we make array volatile in Java ?
 Have you heard of volatile Table in Teradata ?
 what is volatile and atomic

 Q3. What is the difference between int[] x; and int x[]; ?Core Java
Ans. No Difference. Both are the acceptable ways to declare an array.

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

   Like         Discuss         Correct / Improve     java   array   arrays   array declaration   difference between     Asked in 3 Companies      basic

Related Questions

 Is this array declaration correct ? If not , Why ?

String[] strArray = new String[];

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: