Friday, September 24, 2010

ABAP Trained Freshers - Written Test on Sunday, 26th September 2010

ABAP Trained Freshers - Written Test on Sunday, 26th September 2010

Dear all,

We are looking for hiring people who are trained in ABAP even if they are new to SAP/ABAP.

As you are aware, at YASH, in particular when it comes to hiring into the technical streams, Aptitude, Extrapolation skills, Ability to apply knowledge are always given preference over just Experience / Knowledge / Certification etc.

In this regard, we are conducting walk-ins this Sunday (26th September) for ABAPers (with or without ABAP experience).

Please forward the following details to all your friends who might be eligible for these requirements. However, people who had applied in the past 6 months need not apply again.

The details are as follows:

Eligibility Criteria:
·         Qualification - B.E, B.Tech, M.C.A and M.Sc in any stream with First class.
·         Should have knowledge in ABAP.
·         Year of Graduation should be 2008 and later only
·         SAP Certification is desirable but NOT a must.

Selection Process:
Aptitude-cum-ABAP test followed by Group discussions & Interviews.

Walk-in for the exam:
Sunday, 26th September 2010

Place:
Yash Technologies, First Floor, Saptagiri Towers, Begumpet, Secunderabad - 16 Landmark: Above Pantaloons.

Time:
Registration will be between 9:00 AM and 10:30 AM on 26th September, 2010 - time for the test will be given at the time of registration

The candidates must carry
1.       2 color passport size photographs
2.       Original and a copy of a photo ID proof (Driving license / PAN card / Passport / Voter ID card)
3.       Xerox Copy of the degree/provisional certificate
4.       SAP certified candidates should bring the copy of the SAP certificate

Candidates without carrying any of the above will not be allowed for the exam
People who had applied in the past 6 months need not apply again.
Please note that Advance registration through email and/or telephone will not be entertained

Wednesday, September 22, 2010

Difference between Arguments & Parameters

Parameter : Parameter represents a value which is to be passed while defining a function.

Usage:

     int sum(int a, int b)
     {
        return a+b;
     }

 In the above example a & b integer variables are parameters.


Argument: Argument represents a value which is passed to function while calling.

Usage:
     
   To find the sum of two numbers we can call the above function by passing values like below
    Calling sum(4,5) will give the sum of the numbers passed.
   Here 4 & 5 are called as arguments
  

Friday, September 17, 2010

Folder Locking using Java

Hi,
  Here you can find HOW TO LOCK A FOLDER using java. In this example i passed the images folder as an input to lock. Whenever you passed a file path as an input then the folder which contains the input file is locked. Means no one can be able to modify/delete the file contents. 

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.RandomAccessFile;
import java.nio.channels.FileChannel;
import java.nio.channels.FileLock;


public class FolderLocking {
    public static void main(String[] args) {

        //Pass the Path of the images folder
        String imagePath = "C:\\Users\\Public\\Pictures\\Sample Pictures\\Desert.jpg";
        RandomAccessFile file = null;

        File parentFile = new File(imagePath).getParentFile();
        int length = parentFile.listFiles().length;
        File fileList[] = parentFile.listFiles();
        FileLock fileLocker[] = new FileLock[length];
        for(int i=0; i<fileList.length; i++)
        {
            try {
                file = new RandomAccessFile(fileList[i],"rws");
                FileChannel fileChannel = file.getChannel();

                fileLocker[i] = fileChannel.tryLock();
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        System.out.println("Enter the Key.......");
        try {
            if(br.readLine().equals("Open"))
            {
                for(int j=0;j<fileLocker.length;j++)
                    {
                        if(fileLocker[j] != null)
                            fileLocker[j].release();
                    }
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}