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 meant by polymorphism?

0 Answers  


Is java ee a framework?

0 Answers  


Are arrays classes in java?

0 Answers  


if num=687; U have to get num=6+8+7;

4 Answers   CMC,


What is the purpose of garbage collection in java?

0 Answers  


What is boolean data type in java?

0 Answers  


What is the importance of main method in Java?

0 Answers  


When we can access the static data member without creating the object what is the need of the object in java.

5 Answers   Airhub, ssinformatics,


Is string pool garbage collected?

0 Answers  


Explain in detail about encapsulation with an example?

4 Answers  


What is entry in java?

0 Answers  


What is natural ordering in java?

0 Answers  


Categories