Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


please write java program of instanceOf keyword implementation

Answers were Sorted based on User's Feedback



please write java program of instanceOf keyword implementation..

Answer / dhanasekar

public class MainClass {
public static void main(String[] a) {

String s = null;
if (s instanceof java.lang.String) {
System.out.println("true");
} else {
System.out.println("false");
}
}

}

Is This Answer Correct ?    7 Yes 1 No

please write java program of instanceOf keyword implementation..

Answer / karunakar

false

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

what is object deep copy and shallow copy and why it is required?

2 Answers  


What are assembly attributes?

0 Answers  


Is hashset ordered?

0 Answers  


What is meant by javabeans?

0 Answers  


What is xslt in java?

0 Answers  


What are the different types of inner classes?

0 Answers  


What is append in java?

0 Answers  


Explain the difference between scrollbar and scrollpane?

1 Answers  


What is a jagged array in java?

0 Answers  


Difference between static binding and dynamic binding?

0 Answers  


what is private constructor?what are the uses of writing private constructor in our program?

10 Answers  


Is cout buffered?

0 Answers  


Categories