MST Solutions – Fresher Interview Questions – Part 1

MST Solutions – Fresher Interview Questions – Part 1

This blog explains about MST Solutions – Fresher Interview Questions – Part 1 and is given below : 

1.What is constructor. Parameterised constructor and initiate those with example

A Constructor with arguments(or you can say parameters) is known as Parameterized constructor. As we discussed in the Java Constructor tutorial that a constructor is a special type of method that initializes the newly created object.

class Example{
//Default constructor
Example(){
System.out.println(“Default constructor”);
}
/* Parameterized constructor with
* two integer arguments
*/
Example(int i, int j){
System.out.println(“constructor with Two parameters”);
}
/* Parameterized constructor with
* three integer arguments
*/
Example(int i, int j, int k){
System.out.println(“constructor with Three parameters”);
}

/* Parameterized constructor with
* two arguments, int and String
*/
Example(int i, String name){
System.out.println(“constructor with int and String param”);
}
public static void main(String args[]){
//This will invoke default constructor
Example obj = new Example();

/* This will invoke the constructor
* with two int parameters
*/
Example obj2 = new Example(12, 12);

/* This will invoke the constructor
* with three int parameters
*/
Example obj3 = new Example(1, 2, 13);

/* This will invoke the constructor
* with int and String parameters
*/
Example obj4 = new Example(1,”BeginnersBook”);
}
}
Output:
Default constructor
constrSecond question string
Firstvalue=”500″;
Second year=”500″;
Thirdvalue=firstvalue+second value;uctor with Two parameters
constructor with Three parameters
constructor with int and String param

2. What is smoke testing and when to do smoking testing

Smoke Testing

SMOKE TESTING, also known as “Build Verification Testing”, is a type of software testing that comprises of a non-exhaustive set of tests that aim at ensuring that the most important functions work. The result of this testing is used to decide if a build is stable enough to proceed with further testing.

The term ‘smoke testing’, it is said, came to software testing from a similar type of hardware testing, in which the device passed the test if it did not catch fire (or smoked) the first time it was turned on.

3. What is agile and when we go for agile methodologies. 

Agile Methodology is a type of project management process. The agile method anticipates change and allows for much more flexibility than traditional methods. The process involves breaking down each project into prioritized requirements, and delivering each individually within an iterative cycle. Clients come to prescheduled regular meetings to review the work completed the previous iteration, and to plan work for the upcoming iteration. Detailed goals are set in each iteration meeting such as; expected changes, time estimates, priorities and budgets.The value for businesses that use this model include:

i) Lower Cost
ii)Enables clients to be happier with the end product by making improvements and involving clients with development decisions throughout the process.
iii)Encourages open communication among team members, and clients.
iv)Providing teams with a competitive advantage by catching defects and making changes throughout the development process, instead of at the end.
v)Speeds up time spent on evaluations since each evaluation is only on a small part of the whole project.
vi)Ensures changes can be made quicker and throughout the development process by having consistent evaluations to assess the product with the expected outcomes requested.
vii)It keeps each project transparent by having regular consistent meetings with the clients and systems that allow everyone involved to access the project data and progress.

REFERENCES : 

https://beginnersbook.com/2014/01/parameterized-constructor-in-java-example/

http://softwaretestingfundamentals.com/smoke-testing/

http://vcwebdesign.com/uncategorized/what-agile-methodology-why-do-we-use-it/