System Properties in java

System Properties in java

There are various system properties that we can use in our programs to perform some action or access some file.There are some commonly used properties.   Key Meaning “file.separator” Character that separates components of a file path. This is “/” on UNIX and “” on Windows. “java.class.path” Path used to find directories and JAR archives containing class files. Elements of the class path are separated by a platform-specific character specified in the path.separator property. “java.home” Installation directory for Java Runtime Environment (JRE) “java.vendor” JRE…

Read More Read More

strictfp Keyword in java

strictfp Keyword in java

In java  strictfp   is used to strict all the calculations of  to strictly follow the strict floating point calculations in all platforms.   It can be used with class , interfaces and non-abstract methods. If used with the method then it ensures all the calculations inside that method must follow floating point math. When used with the class then it ensures all calculations inside that class must follow floating point math. Compile-time constant expressions must always use strict floating-point behavior…

Read More Read More

JAVA Standard Edition 5.0

JAVA Standard Edition 5.0

JAVA 5.0 ( also known as Standard Edition 5.0 or J2SE 5 or J2SE 1.5) :-   Codename:- TIGER 1. Initially released in September 2004. 2. Has 3200+ classes and interfaces. 3. Introduced several updates and improvements Annotations:- Anotations wrere used to provide meta-data for the programs so that it can be easily understand for metadata-aware programs. Generics:-Generics are used to provide types of object belonging to collections. So that type safety cab be gauranteed at compile time. Autoboxing :- Autoboxing is…

Read More Read More

Jagged Array in Java

Jagged Array in Java

Java support Jagged Arrays. You can have a different length for each column do not need to have same no of the column for all rows. Example:- public class JaggedArray { public static void main(String ar[]) { int[][] a=new int[2][]; a[0]=new int[2]; a[1]=new int[4]; a[0][0]=1; a[0][1]=12; a[1][0]=10; a[1][1]=3; a[1][2]=12; a[1][3]=13; System.out.println(“length-“+a.length); for (int i = 0; i < a.length; i++) { for (int k = 0; k < a[i].length; k++) { System.out.print(a[i][k]+” , “); } System.out.println(“”); } } } Output:- length-2…

Read More Read More

Varargs in java (Passing variable no of arguments in java method)

Varargs in java (Passing variable no of arguments in java method)

After J2SE 5.0 java supports passing of variable arguments in a method that u don’t need to fix the no of arguments at the time of defining the method. The compiler automatically converts the arguments in the form of an array so u can access all the arguments at runtime. Example:- public class Varargs { public static void main(String[] args) { Varargs var=new Varargs(); var.show(“Ankit” , “Singh” , “Katiyar”); var.show(“facebook.com””,”ankitkatiyar91″); } public void show(String… arg) { for(int i=0;i<arg.length;i++)  { System.out.println(arg[i]);…

Read More Read More

External garbage collection in java

External garbage collection in java

In java garbage collection is internally implemented. For it, JVM(Java Virtual Machine) uses a Class java.lang.Runtime. The JVM’s heap stores all objects created by an executing Java program. Objects are created by Java’s “new” operator, and memory for new objects is allocated on the heap at runtime. Garbage collection is the process of automatically freeing objects that are no longer referenced by the program. This frees the programmer from having to keep track of when to free allocated memory, thereby…

Read More Read More

SPEEDUP YOUR COMPUTER BY CLEANING YOUR RAM USING NOTEPAD

SPEEDUP YOUR COMPUTER BY CLEANING YOUR RAM USING NOTEPAD

Does your computer boot slowly or shuts down slowly? Then this tutorial is for you.. One of the major problem of computer coming up slow is1. UNUSED JUNK IN RAM.2. TOO MUCH PROGRAM ON THE COMPUTER DESKTOP( ICONS,)4. VIRUSES ETC CLEAN UP YOUR RAMSTEPS:—————————–1- Open Notepad2- Copy and paste these codes into notepad FreeMem=Space(64000000) .3- Now Save it as CleanRAM.vbs.NB:- IN THE SAVE AS TYPE DROP DOWN MENU, CHOOSE ALL FILES4-Now Open it and your RAM will be free from…

Read More Read More

Jar Files are not working properly

Jar Files are not working properly

  Problem – Jar (.jar) files are not working as it should be they are opening in Nokia Pc Suite or in other program. Solution – Easiest way to solve this problem 1.    Uninstall the program in which they are opening. 2.    Now change the open with setting of .jar file a.     Set it to Java(TM) SE Platform. b.    Mark Always open in this program 3.    Now again install the program 4.    This time jar files will work properly.

FIXING SSL FOR WAMP

FIXING SSL FOR WAMP

ERROR:There was a problem opening a secure connection to Google. This is what went wrong:Unable to find the socket transport “ssl” – did you forget to enable it when you configured PHP? (1)Recently I had to fix a bug/oversight in the WAMP install that prevented ssl from being a registered stream socket transport, it turns out there are quite a lot of requests for help on this subject out there but few or no answers. I stumbled into this problem…

Read More Read More