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
Deploy Printer Drivers to WinXP Computers
store comma separated multiple numbers in a mysql database field database and query them efficiently
Windows 7 Group Policy Bug?
How to deny write to the desktop for users?
Need a 40" or larger touchscreen computer
Pervasive SQL 9.5 - odbc SELECT Query - DATE = '0000-00-00'
how to prevent others to see my website without logging in
How to remove automatic login from Outlook 2010
Timers in Foxpro
Mysql error when trying to create view