Microsoft
Software
Hardware
Network
Question : checking object reference
I ran one example which gave out put as
it is an animal!
class Animal {
public Animal(String aType) {
type = aType;
}
public String toString() {
return "This is a " + type;
}
private String type;
}
public class Class2 {
public static void main(String[] a) {
Animal pet = new Animal("a");
if (pet.getClass() == Animal.class) {
System.out.println("it is an animal!");
}
}
}
It was given that this program
Checking whether the object referenced was of type String. I did not get where we are checking whether the object referenced was of type String .
Any links, sample code, ideas, resources highly appreciated. thanks in advance
Answer : checking object reference
Broadcom definately has a utility for this. Check your server vendor website first before using the Broadcom generic install though.
Random Solutions
Assigning a GPO to specific users and one Server only ?
Cisco VPN client for Windows, use both RSA SecurID soft token and hard token
Iterating through a PDF file (stepping through) for validation purposes
Crystal report 2008, draw graph with huge of data.
How do I write data to separate excel worksheets in coldfusion?
parsing XMLDOM
setup Xsan with couple of Apple macs final cut pro
drive mapping not working?
Force Outlook 2003 to use encryption connection to Exchange
Windows7 my Documents folder