| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| suppose string s1="rajnish";
string s2="bhaskar";
then what will be happend ? | Fidelity | 6 |
| is java support call by reference and call by value, if
supports please explain? | | 3 |
| What is an abstract class? | Wipro | 5 |
| Why is prepared Statement, Callable Statement used for? What
is the need of Batch updates? | Logica-CMG | 1 |
| Need 2+ yrs experienced java techinical question papaer for
company Iflex | | 1 |
| Is it possible to create Userdefined Unchecked Exception
also?If Yes, give an example? | | 2 |
| What are the standards to place package statement within a
source code file? | | 1 |
| What is yielding and sleeping? how they different? | | 2 |
| Why cant we define System.out.println() inside a class
directly? | | 4 |
| what is features of jdk 1.5? | TCS | 2 |
| If all the methods in abstract class are declared as
abstract then what is difference between abstract class and
in interface? | Synechron | 6 |
| what is mutability?which one is mutable String or StringBuffer?and why?give
examples of each which shows the mutability of each String or StringBuffer | | 2 |
| What is the format of Inner Class after it compiled? | | 1 |
| public class Garbage
{
int a=0;
public void add()
{
int c=10+20;
System.out.println(c);
System.out.println(a);
}
public static void main(String args[])
{
Garbage obj=new Garbage();
System.gc();
System.out.println("Garbage Collected");
obj.add();
}
}
Above is a code in java used for garbage collection. object
obj has been created for the class Garbage and system.gc
method is called. Then using that object add method is
called.System.gc method if called the obj should be garbage
collected? | | 6 |
| How to access a method that it declared as protected? | | 3 |
| How to sort a vector elements that contains the user define
class object? (Note: If Suppose consider, A Student class
contain two data members. They are String studentName and
int rollNo. I am creating Four objects for this class, each
object contains students details like name and roll no. Now
i am storing that objects in vector and if i retiving the
elements from the vector means then it should be display in
sorting order) | ProdEx-Technologies | 2 |
| long d =10;int i =0;i=d; /// is this possible? If d is very
long number (10 digits or some thing) then? | | 3 |
| Can an object be garbage collected while it is still
reachable? | | 2 |
| how to print output with out using sop statements | UHG | 3 |
| What is parameter tag and what is its use? | | 1 |
| |
| For more Core Java Interview Questions Click Here |