5 Ways to maximize your salary at the next Job

Maximize your salary

Maximize your salary

1. Research what are you worth – Look at the job portals, industry publications and check with your friends to get an idea on what your skills and experience is worth. e.g., It is not uncommon to see Java developers are paid anywhere from $40 to $90 or even higher depending upon their experience, skills and job locations.

2. Let the employer give you an offer first – You do not want to be the one who gives the number, as your salary expectation may be under par. Specially, employees coming from some outsourcing companies have salary on the lower side of the market rate. You should let the employer give you an offer first.

3. Ready to provide a counter offer – If your research suggests that you can get a better deal, be open to convey it in a polite manner. You should also have a strategy on what happens is the employer does not accept your counter offer.

4. Don’t be lazy – Sometimes people take whatever comes their way. Please spend some time to explore where you want your career to go and if the new compensation fits with your career path and goals.

5. Don’t overlook extras – If you can not get the base salary changed, explore if there is an opportunity to get better deals on bonus, insurance, healthcare, flexible work hours and other perks.

 

 

Posted in Uncategorized | Tagged , | Leave a comment

Questions Testers often ask

We get many questions asked from new Quality Assurance testers. I have compiled the list of top questions I hear from them:
1. What does the QA person do and where does it fit in the SDLC phase?
QA person tests a product before it can be released to production.
In a typical SDLC, here are typical steps:
1. Requirement Phase: Product Manager gets/ writes Biz Req Document
2. Analysis Phase: Tester creates test cases
3. Development Phase: Developers get use cases from BRD and write code
4. Validation Phase: Testers execute test cases and report bugs and revalidate the fixes

2. What’s a typical timeline of a Project?
Here is a hypothetical project:
Jan 1st, 2017: Project kicks off
March 1st, 2017: BRD is delivered
March 2nd onwards: You work on defining test cases
March 2nd to April end: Developers are starting to build
May 1st onwards: You can test

3. What is testing?
While there are many definitions of testing, a very simple definition that you look at the
actual result and compare it with the expected result. If both match your functionality is working, otherwise there is a bug.

4. What am I required to do in a Black box testing?
You should be able to do the following:
1. Should be able to convert use cases (BRD – Business Req Document) to test cases
2. You should know how to document and how to use Test Case repositories
3. If you have to report bugs, how and where to report bugs (Jira)
4. Automate – Use Selenium IDE to automate some use cases
5. Load testing – Load runner
6. SVN – How to check incheck out
7. Continuous Integration tool – Jenkins

5. What do you do as a White Box Tester?
In addition to the above, you will also work on
1. Looking at the code, and
2. Writing JUnit test cases

Posted in Uncategorized | Leave a comment

Java Files: Important Interview Coding Questions

One of our consultants recently went for an interview at “a very big company” in San Francisco, and she was asked to write Java implementation of File System function, such as list, create file, create folder etc.

We strongly recommend you to prepare yourself to be able to whiteboard these solutions for an interview.

Here is the solution (If you like this solution, please leave a comment – Thanks in advance):

 

/**
 * 
 */
package com.training.package3.q6;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;

/**
 * Emulate the following File system functions using File class: A. Create a
 * Folder (similar to mkdir command) B. Create a File C. Delete a Folder or File
 * (similar to rm command) D. Rename a File E. Read the content of a File and
 * Display the content (similar to cat command) F. Display the list of files and
 * folder under a Folder(similar to ls command)
 *
 * 
 */
public class FileSystemEmulator {

	/**
	 * A. Create a new folder at the base URL
	 * 
	 * @param baseURL
	 * @param folderName
	 * @return
	 */
	public boolean createFolder(String baseURL, String folderName) {
		File file = new File(baseURL, folderName);
		boolean status = false;
		try {
			status = file.mkdir();

		} catch (Exception e) {

			e.printStackTrace();
		}

		return status;
	}

	/**
	 * B. Create a File
	 * 
	 * @param baseURL
	 * @param folderName
	 * @return
	 */
	public boolean createFile(String baseURL, String fileName) {
		File file = new File(baseURL, fileName);
		boolean status = false;

		try {
			status = file.createNewFile();

		} catch (IOException e) {

			e.printStackTrace();
		}

		return status;
	}

	/**
	 * C. Delete a Folder or File (similar to rm command)
	 * 
	 * @param baseURL
	 * @param folderName
	 * @return
	 */
	public boolean deleteFile(String baseURL, String fileName) {
		File file = new File(baseURL, fileName);
		boolean status = false;

		try {
			status = file.delete();

		} catch (Exception e) {

			e.printStackTrace();
		}

		return status;
	}

	/**
	 * D. Rename a File
	 * 
	 * @param baseURL
	 * @param folderName
	 * @return
	 */
	public boolean renameFile(String baseURL, String fileName, String newName) {
		File file = new File(baseURL, fileName);
		boolean status = false;

		try {
			status = file.renameTo(new File(baseURL, newName));

		} catch (Exception e) {

			e.printStackTrace();
		}

		return status;
	}

	/**
	 * E. Read the content of a File and Display the content (similar to cat
	 * command)
	 * 
	 * @param baseURL
	 * @param folderName
	 * @return
	 */
	public boolean readAndDisplayContent(String baseURL, String fileName) {
		File file = new File(baseURL, fileName);
		boolean status = false;

		try {
			FileReader myFR = new FileReader(file);
			BufferedReader in = new BufferedReader(myFR);
			String str;

			while ((str = in.readLine()) != null) {

				System.out.println(str);
			}

			in.close();
		} catch (IOException e) {
			e.printStackTrace();
		}

		return status;
	}

	/**
	 * F. Display the list of files and folder under a Folder(similar to ls
	 * command)
	 * 
	 * @param baseURL
	 * @param folderName
	 * @return
	 */
	public boolean listFilesFolder(String baseURL, String fileName) {
		File file = new File(baseURL, fileName);
		boolean status = false;

		try {
			File[] files = file.listFiles();
			for (int i = 0; i < files.length; i++) {
				System.out.println(files[i].getName());
			}

		} catch (Exception e) {

			e.printStackTrace();
		}

		return status;
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		String baseURL = "/Users/amitesh.sinha/data";
		new FileSystemEmulator().createFolder(baseURL, "myFolder");
		new FileSystemEmulator().createFolder(baseURL, "myFile.txt");

		new FileSystemEmulator().readAndDisplayContent(baseURL, "myFile.txt");
		new FileSystemEmulator().listFilesFolder(baseURL, "myFile.txt");

		new FileSystemEmulator().deleteFile(baseURL, "myFile.txt");
		new FileSystemEmulator().renameFile(baseURL, "myFile.txt", "newName.txt");

	}
}

Posted in Coding Challenges, Computers and Internet, Interview Preparation, IT Jobs | Tagged , , | Leave a comment

Top 10 Java Interview Programming Questions with Solutions

screen-shot-2016-10-05-at-11-18-07-pm

Wonder how to prepare for the interview programming questions?Here is a great way to get started. These ten questions will warm you up to get started with a successful interview.

Without much further ado, here are the questions:

1. Write a method that uses a for loop to display numbers in descending order in the step of 5 starting from 100. Call your method from the main method.

e.g., The output should be:

100

95

90

5

0
2. Write a method that uses a while loop. This method would replace every vowel in the String with X. Call your method from the main method.

e.g., the String
Java is Fun
should become
JXvX Xs FXn
3. Write a method that uses a do while loop. This method would reverse a String. Call your method from the main method.

e.g., the String
Java
should become
avaJ

4. Write a method that checks if a String is a Palindrome. Call your method from the main method.

5. Write a method that prints the multiplication table of the user provided number. Call your method from the main method.

e.g., If the user enters the value of 9
should become, the program prints
9
18
27
36


81
90

6. Write a method that checks if a number is a Prime number. Call your method from the main method.

7. Write a method that accepts two numbers are returns the maximum of Two. Call your method from the main method.

8. Create a method that accepts two numbers and returns the minimum of Two. Call your method from the main method.

9. Write a method that accepts two numbers and returns the average of Two. Call your method from the main method.
10. Write a method that calls all the above methods. Log the time at the begining of this method and at the end. Print how many milliseconds elapsed in executing all the above methods Call your method from the main method.

Solution:

Solution is located at our tutorial website http://sansatechnology.com/tutorials/java/ten-interview-loop-questions.php

 

Have questions? Contact us:
Email: contact@sansatechnology.com
Web: http://www.sansatechnology.com

Need a boost for your professional career? Try our professional training courses: http://www.sansatechnology.com/training
We are hiring! Check out our current job openings at: http://www.sansatechnology.com/career.php

Posted in Uncategorized | Tagged , | Leave a comment

5 things a Job Seeker should learn from the Olympics

  1. 2016_summer_olympics_logo Aim for Higher, Bigger & Better – As someone has said that you are competing with no one but yourself to get better. Keep aiming for higher, bigger and better goals.

 

  1. Never Stop Learning – Most of the players at Olympics never stop learning. They are at that level as they have practiced everyday and have never stopped learning. Look at the mistakes you have made in the previous interviews and rectify them before the next one.

 

  1. Be consistent – Olympians are consistently great. They plan, they practice, they repeat the same routine over and over, as they know what is the end goal. You also need to be consistent – keep doing what you believe in and keep giving consistent performance.

 

  1. Have a winner’s mentality and Never Quit – Sometimes it feels that there is no light at the end of the tunnel, and some people decide to quit their dreams. Perseverance is the key to your success.

 

  1. Today can be your lucky day – Do your best. Today could be your lucky day. If you have already prepared, had a good night sleep, today could be the day you get the success.

 

Posted in Uncategorized | Tagged , | Leave a comment

Which skills should I possess as a White Box Tester or SDET (Software Development Engineer in Test)

While it really depends upon what your potential employer is looking for, when we hire some this is what we are generally looking for:

Technology

 

  • Really Strong in Core Java
  • Hands on with Coding, Knowledge of Shell Scripting and Unix, SQL
  • Should have worked on Automation using Selenium Web Driver
  • Should have worked on Application Testing projects and not Platform Testing
  • JUnit

Process

  • Experience in automation of test cases for applications built for Performance & Scale, SaaS & Cloud
  • Design, develop and debug tests in a complex environment using tools such as Selenium,
  • Execute tests, report results and open bugs as needed per organizational standards
  • Worked in projects executed in Agile methodology

Other Skills

  • Should have clear communication and ability to express issues and ideas
  • Should be a team player

Let us know if you have more questions. We are happy to help you with your questions.

 

Posted in Uncategorized | Leave a comment

How do I know if I have enough pre-requisite to develop an Android App?

Native Android Apps are written using Java. You need to have enough knowledge of Java to ensure that you can write a decent Android Application.

You can use the following check list to ensure you have enough Java skills:

1. Can you write a Java class?
2. Do you know how to create an Object?
3. Can you create a method and invoke it from another class?
4. Can you read the API document?
5. Can you extend or implement?
6. Can you override and/or overload methods?

If the answer is yes to majority of the above, you have the pre-requisite to start with Android Apps development.

Posted in Uncategorized | Tagged , , | Leave a comment

How do you get the best salary at your next Job?

salary-negotiation-tips1. Research what you are worth – Look at the job portals, industry publications and check with your friends to get an idea on what your skills and experience is worth. e.g., It is not uncommon to see Java developers are paid anywhere from $40 to $90 or even higher depending upon their experience, skills and job locations.

2. Let the employer give you an offer first – You do not want to be the one who gives the number, as your salary expectation may be under par. Specially, employees coming from some outsourcing companies have salary on the lower side of the market rate. You should let the employer give you an offer first.

3. Ready to provide a counter offer – If your research suggests that you can get a better deal, be open to convey it in a polite manner. You should also have a strategy on what happens is the employer does not accept your counter offer.

4. Don’t be lazy – Sometimes people take whatever comes their way. Please spend some time to explore where you want your career to go and if the new compensation fits with your career path and goals.

5. Don’t overlook extras – If you can not get the base salary changed, explore if there is an opportunity to get better deals on bonus, insurance, healthcare, flexible work hours and other perks.

Posted in Computers and Internet, Organizations | Tagged , | Leave a comment

How to fix Eclipse Tomcat not starting in 45 seconds

Generally this error indicates that there is some issue with Tomcat Server configuration in Eclipse. Best way to fix this would be to completely remove server and its reconfiguration and add it again to Eclipse.

Steps below will describe how to accomplish this.

1. Open the Servers Tab from Windows>Show View>Servers menu

Sansa Technology Professional Training - Fixing Tomcat issue with Eclipse

2. Right click on the server and delete it

Sansa Technology Professional Training - Fixing Tomcat issue with Eclipse

3. Create a new server by going New>Server on Server Tab

Sansa Technology Professional Training - Fixing Tomcat issue with Eclipse

4. Click on “Configure runtime environments…” link

Sansa Technology Professional Training - Fixing Tomcat issue with Eclipse

5. Select the Apache Tomcat v7.0 server and remove it. This will remove the Tomcat server configuration. This is where many people do mistake – they remove the server but do not remove the Runtime environment.

Sansa Technology Professional Training - Fixing Tomcat issue with Eclipse

 

Sansa Technology Professional Training - Fixing Tomcat issue with Eclipse

6. Click on OK and exit the screen above now.

7. From the screen below, choose Apache Tomcat v7.0 server and click on next button:

Sansa Technology Professional Training - Fixing Tomcat issue with Eclipse

8. Browse to Tomcat Installation Directory

Sansa Technology Professional Training - Fixing Tomcat issue with Eclipse

9. Click on Next and choose which project you would like to deploy:
Sansa Technology Professional Training - Fixing Tomcat issue with Eclipse

10. Click on Finish after Adding your project

Sansa Technology Professional Training - Fixing Tomcat issue with Eclipse

11. Now launch your server. This will fix your Server timeout or any issues with old server configuration. This solution can also be used to fix “port update not being taking place” issues.

Posted in Computers and Internet | 13 Comments

How do I set JAVA_HOME?

1. Go to My Computer> Properties

2. Go to Advanced Tabs and Click on Environment Variable Button

3. Under System Variable section, Click on the new button to a new variable.

4. Enter variable name as JAVA_HOME and variable value as your JDK installation directory (e.g., C:\softwares\Java\JDK1.6.0_23)

 

Posted in Computers and Internet | Leave a comment