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
Windows 7 Deployment under 802.1x Wired LAN Authentication
Oracle qry on system tables
PHP QUESTION - OSCOMMERCE - How to remove short description underneath products in Oscommerce 2.2
Dell PowerEdge 2800 server failure - RAID ADAPTER unrecoverable error
Change content file onClick without reloading page.
get 550 5.7.1. Unable to relay for specific domains....
how do i stop a java code?
How to sendkeys commands to two sequential dialog boxes
Website doesnt display correctly in IE7
Question about Exchange 2010 mailbox move.