Following points are used
1. Check whether the last digit of the integer can be divided by 2 or not
2. Check whether the sum of all digits of the integer can be divided by 3 or not
3. Check whether the last digit of the integer can be divided by 5 or not
4. If all the above checks fails Check whether there is an integer from 7 to square root of number which is divide the number
Monday, July 2, 2018
Check last JRE access time
JRE will create and update a file in a directory called oracle_jre_usage located in
- Windows : %ProgramData%\Oracle\Java\.oracle_jre-usage\
- All other operating systems: ${user.home}/.oracle_jre_usage/
ex: I have used ubuntu 18.04. So when I start intellij idea it will create a file like below
lakshman@lakshman-Latitude-3580:~/.oracle_jre_usage$ vim 9e360713136aba0a.timestamp
File content is as follows
/usr/lib/jvm/java-8-oracle/jre
1530512372457
~
As you can see the last access time can be found in timestamp format.
From JDK 8u171 and later updates and JDK 10 and later, usage tracking can be disabled by using jdk.disableLastUsageTracking property.
ex: java -Djdk.disableLastUsageTracking=true -jar lastUsageTracking-executable.jar
lakshman@lakshman-Latitude-3580:~/.oracle_jre_usage$ vim 9e360713136aba0a.timestamp
File content is as follows
/usr/lib/jvm/java-8-oracle/jre
1530512372457
~
As you can see the last access time can be found in timestamp format.
From JDK 8u171 and later updates and JDK 10 and later, usage tracking can be disabled by using jdk.disableLastUsageTracking property.
ex: java -Djdk.disableLastUsageTracking=true -jar lastUsageTracking-executable.jar
Subscribe to:
Posts (Atom)
How to choose IP address range for resources for AWS virtual private cloud
You will often need to allocate an IP address range when you design the network of an AWS VPC. Since VPC is a small network of resources(E...
-
You can create OAuth applications using OAuthAdminService admin service. You can follow the below steps to see how mapping of existing OAu...
-
JRE will create and update a file in a directory called oracle_jre_usage located in Windows : %ProgramData%\Oracle\Java\.oracle_jre-usa...
-
It can be white listed and black listed applications in WSO2 EMM 2.1.0 onwards. What is Application White List? White listed applications...