| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is the use of abstract class and interface with example? | DNS | 2 |
| Which is the best way to use for String concatenation in
Java? | HCL | 5 |
| How many ways can an argument be passed to a subroutine? | | 2 |
| What are the standards to place package statement within a
source code file? | | 1 |
| How can be define MARKER interfce in java | | 1 |
| what is business objects? | | 1 |
| What is the USE of Null interfaces ??...if thers nothing
inside these interfaces how are they used and WHy are they
used ???? No 1 has given a proper description yet | | 1 |
| what is Hashmap & Hashtable wirh example? | Saksoft | 4 |
| 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 |
| when we write class.forName("any one class"); what happens
actually?what it will return?explain stepwise? | | 4 |
| How to create two different thread class inside a main function? | | 1 |
| Difference between String and StringBuffer. | IBM | 3 |
| how session will be expired? | Infosys | 4 |
| where do we use init() | | 2 |
| Which class is extended by all other classes? | | 2 |
| What is the differnence between String Buffer and String
builder despite having knowledge that String builder is
faster than String Buffer and last one is threadsafe.please
tell another important difference. | | 3 |
| What is the need to implement Serializable interface (with
no methods) for objects which are to be serialized ?
We can write our own functionality which writes objects to
streams then why we need to implement and tell JVM that
which objects can be serialized. | iFlex | 4 |
| Explain class A{}
class B{}
class C{}
all the three classes are saved in a single file name, what
the name should i provide to the file ,in what file name
should i run the program? Ple Explain | DNS | 6 |
| Define interface? | | 2 |
| Differentiate constructor and a method and how are it be
used? | Wipro | 5 |
| |
| For more Core Java Interview Questions Click Here |