Define array. Tell me about 2-D array.
Can we declare the main method of our class as private?
What are user defined exceptions?
Why volatile is used in java?
What are the types of sockets in java?
How do you use wildcards?
Can we define static methods inside interface?
all are saying java doesn't support multiple inheritance but by default Object class is super class for all the user defined classes and we can extend atmost one class so each class can extend more than one class so java supports multiple inheritance?i am confused with this,pls any one explain me.
why to use transient variables when static variables can be used for Serialization
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?
Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?
What is difference between this and super keyword?
What is the difference between sleep and wait in java?