Why sleep()is in Thread and wait() in Object class? Why can't I have both in one class or vice versa?
1 5297This is related to threads. I have a class with synchronized method m1(). Can I create different instances of this class and execute the m1() for different threads?
3 4865what is the output??????? public class multireturn { public(int assign x ( int x) { if(4==x) { return 7; } else if (7=x+3) { return 6; } return 5; } }
TCS,
3 4754how a marker interface gets its functionality and when we implements a marker interface how it got invoked
3 10464how to handle a singleton service locator. when multiple threads are trying to get the singleton object in same time
4 9565Every 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?
2 3802There are 2 different ways to create an object. a)By using keyword "new" b)By using Class.forName ("className").newInstance(); What is the difference between these 2 methods.
3 5061Is it possible to create object with out its default constructor? if possible how? else not possible? justify
5 6270
What are decalarations?
I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?
How do you check if two given string are anagrams?
What are abstract methods in java?
What is number data type in java?
What is an example of declaration?
What is isa relationship?
What is the += operator called?
What are assembly attributes?
Explain the overview of UDP messaging.
What does bitwise or mean?
Why char array is favored over string for the storage of passwords?
How do you compare values in java?
Which sorting is used in arrays sort in java?
What is the difference between char and char *?