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

Why there are some null interface in java? What does it mean?

0 Answers  


When is the arraystoreexception thrown?

0 Answers  


What is the difference between yielding and sleeping in java programming?

0 Answers  


Explain the difference between intermediate and terminal operations in java8?

0 Answers  


When do we use synchronized methods in java?

0 Answers  


What are operators and its types?

0 Answers  


Does the order of public and static declaration matter in main method?

0 Answers  


What is java virtual machine and how it is considered in context of java’s platform independent feature?

0 Answers  


What does a void function return?

0 Answers  


Which one of the following suits the description of a string better: derived or primitive?

0 Answers  


What is the immediate parent class of the Applet class?

1 Answers  


What is the access scope of a protected method?

0 Answers  


Categories