How To Get Class Loaded Path

java-thumbnail

This example illustrates how to get the class loaded path. If you are aware of the java.lang.Class, it has methods for knowing the details of a class. There are many details this object can reveal us, one of the method defined in that class is Class.getProtectionDomain() which is useful for getting the source code path […]

How To Get Current Class Loader Name

java-thumbnail

This example shows how to get the name of the class loader and parent class loader for the currently executing class. If you are not aware of the class loaders, please read our previous article about ClassLoader. What is the ClassLoader ? As its name implies, ClassLoader is a class that loads other classes. More […]

How To Get Implementing Interfaces Name For A Class

java-thumbnail

This example illustrates how to get the implemented interfaces names of a particular class. If you are aware of the java.lang.Class, it has methods for knowing the details of a class. One of the method defined in that class is Class.getInterfaces() which is useful for getting all the interfaces names which it is implemented. This […]

How To Get Super Class Name From Object

java-thumbnail

This example illustrates how to get the super class name from its instance. If you are aware of the java.lang.Class, it has methods for knowing the details of a class. One of the method defined in that class is Class.getSuperclass() which is useful for getting the super class’s java.lang.Class object. With that object, you can […]

How To Get Class Name From Object

java-thumbnail

This example illustrates how to get the class name from its object. If you are aware of the java.lang.Class, it has methods for knowing the details of a class. One of the method defined in that class is Class.getName() which is useful for getting the name of the class. Note that, each instance has “class” […]

How To Resolve java.lang.IllegalAccessException

java-thumbnail

This example shows when the java.lang.IllegalAccessException is thrown in your application. When an application tries to reflectively create an instance (other than an array), set or get a field, or invoke a method, if that method is not accessible to your application (probably the modifier is private or not accessible one), then your application will […]

Static Initializer In Java

java-thumbnail

This example shows how to use the static initializer in Java. The following are the few features of static blocks. Static initializers are block of code with static keyword. These are executed when the class is loaded or accessed first time by any application. Only static variables can be initialized inside static blocks. Instance variables […]

10 Tips To Improve MongoDB Security

mongodb_main-150x150

MongoDB provides a number of constructs to improve the security of your data. The security of your data in MongoDB is paramount – so it is important to leverage these constructs to reduce your surface area. Here are 10 tips you can use to improve the security of your MongoDB servers on premise and in […]

Best MongoDB GUI Tools

mongodb_main-150x150

A good UI is an important part of the development experience. The mongo shell works great for administrative actions but when working with larger amounts of data, the UI becomes fairly important. There are a number of options when it comes to MongoDB GUI, some good and some not so good. Below are some of […]

JQuery Live Event Handler Example

jquery

It attaches event handlers to the specified elements and specifies the function to run when the event occurs. This method attaches delegated event handlers to the document of a page. When you use live() event, it will bind all current and future elements on the page. The live() method do not set anything on the […]

Close
Please support the site
By clicking any of these buttons you help our site to get better