Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Company Name Starts with ...
#  A  B  C  D  E   F  G  H  I  J   K  L  M  N  O   P  Q  R  S  T   U  V  W  X  Y  Z

Satyam Interview Questions
Questions Answers Views Company eMail

what is Regresstion testing? when it will be needed?

19 29386

Where are the expected results file will be stored? what is the extension of that?

1 11020

Give the syntax of Inner,outer Join?"

7 34951

How do you copy the script from source alert?

2 7977

Can you create a field without data element domain?

9 35515

What is the Difference Between basic list and interactive list?

5 11443

tell me about status codes?

2 12114

what are the fields in BDC Data?

5 17908

how you identify errors in call tr?

2 8582

what is Tcode for Basic ALE configuration?

2 8706

what are the stpes in ALE?

2 9181

Suppose in the Report Program I want to pass data to another Report Program ..how will you do that one?

4 12234

How you prepare documentation?

2 13597

what is web server?

3 25683

Write a program to reverse a linked list?

8 20880

Post New Satyam Interview Questions


Satyam Interview Questions


Un-Answered Questions

What is the use of trigger manager?

49


Why is unix better than windows?

944


Is wordpress still popular?

165


Can you explain steps in function points?

1131


What is the difference between a program and an application?

983


list out three tableau limitation

428


What is polymorphism and what are the types of it?

993


The following program reads data (details of students) from a file named students.txt and converts it into e-mail addresses. The results are written to a file named studentemail.txt. students.txt consists of a number of lines, each containing the data of a student in colon delimited format: Last Name:First Name:Student Number Each input record is converted to an e-mail address and written to studentemail.txt in the following format: the first character of the last name + the first character of the first name + the last four digits of the student number + “@myunisa.ac.za” import java.io.*; public class EmailConverter { public static void main(String[] args) throws IOException { BufferedReader input = new BufferedReader(new FileReader ("students.txt")); PrintWriter output = new PrintWriter(new FileWriter ("studentemail.txt")); String line = input.readLine(); while (line != null) { // Extract the information for each student String[] items = line.split(":"); // Generate the email address String email = "" + items[0].charAt(0) + items[1].charAt(0) + items[2].substring(4,8) + "@myunisa.ac.za"; email = email.toLowerCase(); // Output output.println(email); line = input.readLine(); } input.close(); output.close(); } } Rewrite the class so that it handles possible errors that may occur. In particular, it should do the following: • It should catch at least three appropriate exceptions that might occur, and display suitable messages. • At this stage, the program will not run correctly if there is an empty line in the input file. Change the program so that if an empty line is encountered, an exception is thrown and the empty line is ignored. This exception should be handled with the display of a suitable error message. • Before the e-mail address is added to the output file, check if the student number has 8 digits. If not, throw an InvalidFormatException (which the program should not handle itself)

1947


What are drupal 8 hooks?

111


what is partial backup in linux ?

904


What is testing temperature?

1


How do I create a shortcode?

172


Why we override equals() method?

1040


The change in a semi-conductor strain gauge, in resistance on application of strain is mainly due to the change in its

1038


What is special about one time vendor?

1094