| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| my method "abc" return array of interface "xyz"
and "pqr" is abstract class implements abc
and class "jkl" extends pqr
My problem
1) when i call abc it retrun array xyz how can i do this
hint
xyz refer_xyz = new jkl();
but i can't create array.
2)I want to access method of jkl using reference of xyz??
| | 1 |
| is java support call by reference and call by value, if
supports please explain? | | 3 |
| What is Remote Interface ? | CTS | 4 |
| What are order of precedence and associativity, and how are
they used? | | 1 |
| What is the need of "creating and throwing an
UserdefinedException" when the "Exception" class is already
available? | | 4 |
| Why do we use public static with the main function in Java? | Infosys | 7 |
| If you are reviewing the code of your team members, what
points will you look at, assuming the performance of the
application is not so great | KPIT | 2 |
| In what types of operations an ArithmeticException will be
thrown? | | 2 |
| Is it possible to create Userdefined Unchecked Exception
also?If Yes, give an example? | | 2 |
| Does 'true' and 'false' are keywords? | | 5 |
| how u do unit testing? | iFlex | 2 |
| what is webservices | Mind-Tree | 4 |
| when asub class inherits a super class and overrides a
public method of super class in sub class(public method in
super class).
why these methods needs to be public in sub class.
(otherwise compile time error). | | 2 |
| In Inheritence concept, i have a static method in super
class and i am inheriting that class to one sub class.in
that case the static method is inherited to sub class or
not???? | Accenture | 8 |
| How can you eliminate duplicates? | | 1 |
| I have one Shopping cart application, i that i have
selected some items, while clicking submit button by
mistake i have clicked twice or trice, that time items are
selected twice or trice. Actually i want only one copy of
items but its selected twice or trice. So how can we avoid
this problem? | Honeywell | 2 |
| What is a stream? what are the different types and classes
of Streams? | | 2 |
| which method is used to know the status of the Thread? | Honeywell | 6 |
| What is static and a non-static inner class? | | 3 |
| What is casting ? | | 2 |
| |
| For more Core Java Interview Questions Click Here |