Difference between Class.forName() and newInstance() in java Class.forName() returns the Class-Type for the given name. Means that it will return reference to a class and load the available all static blocks not instance methods. if you are interested only in the static block of the class , the loading the class only would do , […]
What is the difference between Static Block and Constructor placed in a class?
What is the difference between Static Block and Constructor placed in a class? Static Block Static block of a java class executes for only one time when JVM loads the class irrespective of whether object is created for class or not and whether java class is having main method or not. So static block […]
How to encrypt Apache Tomcat Server Admin’s Password
Apache Tomcat Server is most popular open source web server with servlet container. It’s light wight web server and will not required much space in the system. Apache Tomcat server having a lot of of security vulnerabilities and we need to fix those to make secure web server. OWSAP list down critical security vulnerabilities […]
How to Disable Apache Tomcat Server version
How to Disable Apache Tomcat Server version By default, Apache Tomcat server version exposed and leads security issues. There are three approaches to hide the Apache Tomcat server version. In which easy-st way is adding one of the attributes in server.xml In this article, we are working on Apache Tomcat 6.0.0. Tomcat Information in Response […]
After upgrading struts2 to latest version s:submit not working
Due to security vulnerabilities, struts2 needs to be upgraded to latest versions i.e vulnerable free (2.3.32 or 2.5.10.1) which is vulnerabilities free. After upgrading s:submit action button will not work because it is disabled by default due to security vulnerabilities. Example <s:submit align=”center” action=’Login_loginUser’ value=”Login”/> So that to make it as working, we need […]
Most Important HashMap Interview Questions and Answers
In this post I am sharing most important HashMap interview questions along with answers. Java collections package is java.util, this is the most important package and used frequently in most of the projects. What are the methods required for an object to be used as a key or value in HashMap equals() hashcode() The key […]
Most Important Basic Linux Commands
Most Important Basic Linux Commands In this blog, I am sharing the most important basic Linux commands which are frequently using in our day to day work. Here I have created four files (file1.txt, file2.txt, file3.txt, and .file4.txt) inside workfolder to show an example for the below commands. ls ls command is a […]
How to get last characters from a string in oracle
In this article, I am sharing the steps to get last characters from string in oracle. Suppose we have a value in one of the columns as ‘NarayanaTutorial‘ Then how to get only ‘Tutorial‘ string? We can achieve this in two different ways as follows. First way By using substr function we can get the last […]
Most useful abbreviations with acronyms
In this article, I am going to sharing all types of most useful abbreviation with acronyms. Which are using frequently and some times we may not get the full of the acronym of the abbreviation. So we can revise the all types of abbreviations with acronyms. Most useful abbreviations with acronyms 1. *PAN* – permanent […]
ORA-12519: TNS:no appropriate service handler found
How To fix this issue This issue will occur due to lack of number process configured so that to fix this issue we need to update the Number of Process in this table V$RESOURCE_LIMIT. First of all check the configured number of process using the following query. SELECT * FROM V$RESOURCE_LIMIT WHERE RESOURCE_NAME=’process’; Output RESOURCE_NAME […]