which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?
6 11019how tha garbage collector know that the object will be deleted? on which algorithm the garbage collector works? what is the working principle of garbage collector? How manay types of garbage collectors r there?
1 7214suppose we have an interface & that interface contains five methods. if a class implements that interface then we have to bound that to give tha definition of all five methods in that class. If we declare that class as abstract then can we call only two methods to give the deinition of that method & i don't want to give the definition of all the methods? can it possible
6 10013java program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors.
7 9994why we write public static void main (String args[]) in core java plz explain briefly??????????????????
HCL,
3 8382if we give input as " hi how are you" then the output should be "uoy woh"...it should skip odd words in the input and should reverse even words from the end of string...can anyone help me to write this program in java
1 4088
Where is java located?
Can we have more than one package statement in the source file?
What are the two types of java programming?
What are synchronized methods ?
Can we use return in constructor?
What is static import in java?
What is a ternary operator in java? What is an interface?
What is the difference between method overriding and overloading?
How to sort an unsorted array in java?
Can we write class inside a class in java?
Describe what a thread-local variable is in java?
What is the different types of functions?
What is replacefirst in java?
What's the default access specifier for variables and methods of a class?
Can we convert stringbuffer to string?