{"id":627,"date":"2012-08-20T17:47:21","date_gmt":"2012-08-20T17:47:21","guid":{"rendered":"http:\/\/codeatelier.wordpress.com\/?p=217"},"modified":"2012-08-20T17:47:21","modified_gmt":"2012-08-20T17:47:21","slug":"java-classes-and-objects","status":"publish","type":"post","link":"https:\/\/codethataint.com\/blog\/java-classes-and-objects\/","title":{"rendered":"Java Classes and Objects"},"content":{"rendered":"<p><strong>How to find Class of Object<\/strong><\/p>\n<pre>\n public class Main \n {\n   public static void main(String args[])\n   {\n      A objA = new A();\n  \n      if(objA instanceof A)\n      {\n\tSystem.out.println(objA.getClass());\n      }\n   }\n}\n\nclass A\n{\t\n}\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>How to find Class of Object public class Main { public static void main(String args[]) { A objA = new A(); if(objA instanceof A) { System.out.println(objA.getClass()); } } } class A { }<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[99],"tags":[],"class_list":["post-627","post","type-post","status-publish","format-standard","hentry","category-classes-and-objects"],"_links":{"self":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/627","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/comments?post=627"}],"version-history":[{"count":0,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/627\/revisions"}],"wp:attachment":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/media?parent=627"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/categories?post=627"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/tags?post=627"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}