Why sleep()is in Thread and wait() in Object class? Why can't I have both in one class or vice versa?
1 5262This 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 4812what 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 4683how a marker interface gets its functionality and when we implements a marker interface how it got invoked
3 10394how to handle a singleton service locator. when multiple threads are trying to get the singleton object in same time
4 9514Every 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 3752There 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 5013Is it possible to create object with out its default constructor? if possible how? else not possible? justify
5 6185
Is java call by reference?
Is array a class?
What is the default value of float and double datatype in java?
How do you check if a string is lexicographically in java?
What is double data type?
Which is the class in java?
Which sort is best in java?
What is finalize()?
How do you sort in ascending order in java?
Is this valid in java ? Can we instantiate interface in java?
What restrictions are placed on method overriding?
Q1.A. Write note on “The class path Environment Variable”? B. Which are different kinds of source code? Q2.A. How to create an interface? B. Why convert an applet to an application? Q3.A. How to use Media tracker Class. B. How to use string tokenizer class. Q4 A. Explain the overview of UDP messaging. B. Difference between SQL Exception class and SQL Warning class. Q5. A. How to create com object in Java? B. Write short notes on “The properties class” Q6. A. When object is created and destroyed? B. Explain the JDB in depth & command line. C. Write short notes on Web Sites.
Why can't we make a class private in java?
What is the main advantage of passing argument by reference?
Can a boolean be null java?