Yes, we can quickly check Java Class profile with our terminal.
On daily basis development it is easy to check class profile like what are the methods and constructors are declared/implemented inside a class.
Let's check:
Open your terminal(ctrl+alt+t) if it is Ubuntu machine.
For windows open you command prompt.
Just type
Syntax: javap [fully qualified class name]
It will give us list of methods and constructors.
What is javap ?
Javap stands for "Java profiler".
It is a jdk tool and used to get the profile of class or interface.
Note: This is not only for predefined classes it can be used for the user defined classes.
On daily basis development it is easy to check class profile like what are the methods and constructors are declared/implemented inside a class.
Let's check:
Open your terminal(ctrl+alt+t) if it is Ubuntu machine.
For windows open you command prompt.
Just type
Syntax: javap [fully qualified class name]
javap java.lang.String
It will give us list of methods and constructors.
Javap stands for "Java profiler".
It is a jdk tool and used to get the profile of class or interface.
Note: This is not only for predefined classes it can be used for the user defined classes.
No comments:
Post a Comment