what are the methods of an object class?
Answers were Sorted based on User's Feedback
Answer / m.pushpa
clone(),
equals(Object obj),
protected void finalize(),
Class getClass(),
int hashCode(),
void notify(),
void notifyAll(),
String toString(),
void wait() ,
void wait(long timeout),
void wait(long timeout, int nanos),
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / paletipatisrinu
object is the super class for all the class the following
methods are
clone(),
equals(Object obj),
protected void finalize(),
Class getClass(),
int hashCode(),
void notify(),
void notifyAll(),
String toString(),
void wait() ,
void wait(long timeout),
void wait(long timeout, int nanos),
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / malay
Wait() , notify(), toString(), equals() , clone()
| Is This Answer Correct ? | 2 Yes | 1 No |
explain the life cycle of thread?
10 Answers CTS, NIIT, TCS,
What is default specifier ??? Use of default specifier ???
Where and how can you use a private constructor?
Is there any way to find whether software installed in the system is registered by just providing the .exe file? I have tried the following code but its just displaying the directory structure in the registry. Here the code : package com.msi.intaller; import java.util.Iterator; import ca.beq.util.win32.registry.RegistryKey; import ca.beq.util.win32.registry.RootKey; public class RegistryFinder { public static void main(String... args) throws Exception { RegistryKey.initialize(RegistryFinder.class.getResource("jRe gistryKey.dll").getFile()); RegistryKey key = new RegistryKey(RootKey.HKLM, "Software\\ODBC"); for (Iterator<RegistryKey> subkeys = key.subkeys(); subkeys.hasNext();) { RegistryKey subkey = subkeys.next(); System.out.println(subkey.getName()); // You need to check here if there's anything which matches "Mozilla FireFox". } } }
Is void a data type?
Is nullpointerexception checked or unchecked?
What is the purpose of a statement block?
What is a method in coding?
Can we declare main () method as non static?
Is string pool garbage collected?
my method "abc" return array of interface "xyz" and "pqr" is abstract class implements abc and class "jkl" extends pqr My problem 1) when i call abc it retrun array xyz how can i do this hint xyz refer_xyz = new jkl(); but i can't create array. 2)I want to access method of jkl using reference of xyz??
How do you check if an arraylist is not empty?