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 lambda in java?

0 Answers  


Nested classes VS Inner classes?

3 Answers   Infosys,


Name the package that most of the AWT events that supports event-delegation model are defined?

2 Answers  


What is classpath?

0 Answers  


Can we use String with switch case?

0 Answers  


Can we declare array without size in java?

0 Answers  


What is tree node in java?

0 Answers  


what is difference between length and length()?

8 Answers  


What are different types of states exist for a thread?

0 Answers  


Infinite loop using while ?

4 Answers  


I want to re-reach and use an object once it has been garbage collected. How it's possible?

0 Answers  


Which is better singleton or static class?

0 Answers  


Categories