What is difference between add() and addelement() in vector?
No Answer is Posted For this Question
Be the First to Post Answer
What is the purpose of a transient variable?
What is the main advantage of passing argument by reference?
what r callable statement and give their proper use
Name four container classes.
How infinite loop is declared?
What are the different ways to handle exceptions?
Every class extends object but why it is not possible for every object to invoke clone() method. ideally protected methods should be accessible from sub classes. isn't it?
These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }
Different types of modifiers?
Is it compulsory to have atleast one abstract method in abstract class?
Why should we create an object? what is a need of it? Apart from access members of a class i want what is a need of object what does it contain?? In normal class to access any member of thaht class we create object where as for static class we access its members using class name. what is a difference between them... thanks in advance.
class A { private int i; } class B extends A { private int i; } if I create an object of B class what will be the memory of that object.