Java Articles

Page 318 of 450

Why is Java slower than C++ programs?

Akshaya Akki
Akshaya Akki
Updated on 13-Jun-2020 1K+ Views

Modern Java is quite fast and is comparable to C++ code base but it still takes lot of memory. Slowness of Java programs is primarily because of bad programming practices. But following areas are where Java can be improved.Java libraries are written keeping readability and correctness in mind, not performance.Slow String based operations as Strings are UTF-16 encoded objects and are immutable. So more String are used, more memory is required.Boundary checks on arrays also make its operations bit slow.I/O Stream operations are slow considering synchronization checks on each access.Lacking low level functionality like C also attributes to slowness in ...

Read More

Troubleshooting tips

Rishi Raj
Rishi Raj
Updated on 13-Jun-2020 989 Views

Following steps are mostly required to Troubleshoot any problem that occurred in production.As the first step, get the time frame from the user when a particular issue occurred. Get the logs for that particular time period.If logs are very large in size, use grep command to filter out errors.$ grep -o "\w*Exception" error.log | sort -r | uniq -cIt will help to get all the exceptions in error.log sorted in reversed order and give the unique result and with counts.

Read More

Troubleshooting tips

Rishi Raj
Rishi Raj
Updated on 13-Jun-2020 989 Views

Following steps are mostly required to Troubleshoot any problem that occurred in production.As the first step, get the time frame from the user when a particular issue occurred. Get the logs for that particular time period.If logs are very large in size, use grep command to filter out errors.$ grep -o "\w*Exception" error.log | sort -r | uniq -cIt will help to get all the exceptions in error.log sorted in reversed order and give the unique result and with counts.

Read More

What is Java Development Kit (JDK)?

Manikanth Mani
Manikanth Mani
Updated on 13-Jun-2020 940 Views

JDK, contains development tools and JRE.

Read More

What is Java Development Kit (JDK)?

Manikanth Mani
Manikanth Mani
Updated on 13-Jun-2020 940 Views

JDK, contains development tools and JRE.

Read More

How to set JAVA_HOME for Java in Windows?

Alankritha Ammu
Alankritha Ammu
Updated on 13-Jun-2020 1K+ Views

Assuming you have installed Java in c:\Program Files\java\jdk directory −Right-click on 'My Computer' and select 'Properties'.Click the 'Environment variables' button under the 'Advanced' tab.Now, add the 'JAVA_HOME' variable and set the path to the c:\Program Files\java\jdk'.

Read More

How to set JAVA_HOME for Java in Windows?

Alankritha Ammu
Alankritha Ammu
Updated on 13-Jun-2020 1K+ Views

Assuming you have installed Java in c:\Program Files\java\jdk directory −Right-click on 'My Computer' and select 'Properties'.Click the 'Environment variables' button under the 'Advanced' tab.Now, add the 'JAVA_HOME' variable and set the path to the c:\Program Files\java\jdk'.

Read More

How to Set Permanent Path of JDK in Windows?

Akshaya Akki
Akshaya Akki
Updated on 13-Jun-2020 1K+ Views

Following are the required steps −Assuming you have installed Java in c:\Program Files\java\jdk directory −Right-click on 'My Computer' and select 'Properties'.Click the 'Environment variables' button under the 'Advanced' tab.Now, alter the 'Path' variable so that it also contains the path to the Java executable. Example, if the path is currently set to 'C:\WINDOWS\SYSTEM32', then change your path to read 'C:\WINDOWS\SYSTEM32;c:\Program Files\java\jdk\bin'.

Read More

How to Set Permanent Path of JDK in Windows?

Akshaya Akki
Akshaya Akki
Updated on 13-Jun-2020 1K+ Views

Following are the required steps −Assuming you have installed Java in c:\Program Files\java\jdk directory −Right-click on 'My Computer' and select 'Properties'.Click the 'Environment variables' button under the 'Advanced' tab.Now, alter the 'Path' variable so that it also contains the path to the Java executable. Example, if the path is currently set to 'C:\WINDOWS\SYSTEM32', then change your path to read 'C:\WINDOWS\SYSTEM32;c:\Program Files\java\jdk\bin'.

Read More

What happens in Java Program at compile time?

Alankritha Ammu
Alankritha Ammu
Updated on 13-Jun-2020 511 Views

During compile time, java compiler (javac) takes the source file .java file and convert it to bytecode .class file.

Read More
Showing 3171–3180 of 4,498 articles
« Prev 1 316 317 318 319 320 450 Next »
Advertisements