Default comments

whenever you open any class here, A comment with your credentials come up in the compiler. can you explain how this is working?

Hi Pulkit,
You can implement credentials in following way:

  1. Go to Window -> Preferences
  2. Select Java -> Code Style -> Code Templates
  3. Select Code -> New Java File -> Click on Edit
  4. A pop up comes, and add the content which you want.
    Eg :

${filecomment}
${package_declaration}

/**

*/

${typecomment}
${type_declaration}

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.