Monthly Archives: October 2017



  • After submitting the enquiry, you will be contacted by our team.
  • Payilagam Team will get to know about your training needs.
  • They will update you how could they help you.
  • Trainers(IT Professionals) may contact you if you need any clarification.
  • Your contact information will be kept highly confidential & not be shared to 3rd Parties.
Quick Enquiry

Learn Java Typecast through simple programs

Hi friend, This blog will help to better understanding of typecasting of datatypes in Java. PROGRAM: public class TypeCasting { public static void main(String[] args) { int a = 140; byte b =(byte) a; System.out.println(b); } } OUTPUT : -116 EXPLANATION: This type of type casting will have loss of data. Lets see how 140 changes into -116 by simple binary calculation. 140 decimal value convert into binary number of 16 bits integer – 16 bits value of 140 is 0000000010001100 byte – 8 bits value of 140 is 10001100 [1] 000110 – first digit represent the sign of number 1 – negative value 0 – positive value so as per above reference,we will get negative number. make the binary the 2’s complement 111001 000001 ————— 111010 ————– by adding 0 on the last digits – 1110100 convert 1000111 binary into decimal, 116 Now combine the sign and number will be result of -116

Finatel Technologies Interview Programs with Answers

Finatel Technologies Interview Programs with Answers In this blog we are going to discuss about Finatel Technologies Interview Programs with Answers . Let us explain it below : _____________________________________________________________________________________ Hi, This is Muthuvel. Recently, I attended Finatel Technologies Interview. Here, I am posting one of the Finatel Technologies Interview Programs with Answers. Please have a look. The program asked in Finatel is, I am given with two arrays of integers. Both the arrays are not sorted. I am requested to merge both the arrays in sorted order. One condition given is – I should not use any in built methods to sort the arrays. I tried a lot to get the output and here is my outcome. Kindly go through and let me eagerly wait for your feedback. Finatel Technologies Interview Programs with Answers public class FinatelMergeTwoArrays { public static void main(String[] args) { int[]a = {9,7,3,5,1};  // First Array, not sorted int[]b = {2,4,6,8,11,10}; // Second Array, not sorted  int[]c = new int[a.length+b.length];  // Third Array to be created  int count = 0;int v=1;  // check ‘v’ is initialized here for(int i = 0; i<a.length; i++) { c[i] = a[i];  // Adding array a’s contents to c array count++; } for(int j = 0;j<b.length;j++) { c[count++] = b[j];  // Adding array b’s contents to c array } for(int i = 0;i<c.length;i++){ for(int k=0;k<c.length;k++){ if(c[k]==v){  // verifying the value to print is ‘v’ or not.   System.out.print(c[k] + ” “);   } } v++; } } Output:  1 2 3 4 5 6 7 8 9 10 11

By |October 11th, 2017|Blogs|0 Comments


PHP INTERVIEW QUESTIONS – Part 2 This blog explains about PHP INTERVIEW QUESTIONS – Part 2 . They are discussed very well below :  _____________________________________________________________________________________  Hi, Let us have our second set of PHP Interview questions here. PHP INTERVIEW QUESTIONS  PART 2 1) What is the latest version of PHP? 2) What is the default extension of PHP? 3) PHP should start and end with? 4) Is foreach support in PHP? 5) In which version introduced Try/Catch Exception in PHP? 6) Why we use instanceof in PHP? 7) How to declare a string variable in PHP? 8) Why we use strtotime()? 9) How to change the root directory in PHP? 10) Is PHP has multi type variable? 11) PHP can support multiple inheritance? 12) How to check a function already defined or not? 13) What is the extension of LAMP? 14) Which function is used to pick one or more random values from array? 15) What all are the two types of regular expression? 16)  What is the purpose of preg_match()? 17) Why PHP is truly cross platform? 18) How to create array in PHP? 19) How to rename the file directory? 20) What is the best way to copy a file in php? 21) Write similar syntax available like PHP. 22) How to submit your data without using submit button? 23) Can PHP embedded in XHTML? 24) How to check a cookie? 25) Write which method displays variable in url? 26) Why we use $_SESSION? 27) Whys we use getCode()? 28) Why we use $_SERVER[‘REMOTE_ADDR’]? 29) Write the error control operator in PHP. 30) How can we terminate script execution in PHP? 31) Which operator is used to concatenate string? 32) Write the extension for […]

By |October 5th, 2017|Blogs|0 Comments

Data Submission without Submit button in PHP

Hi, In this blog we are going to know about Data submission without submit button in PHP page by using JavaScript language. By using the DOM, we can get the entire input values from the form, when we click the event handling attribute “onclick” the function will be called and then post into corresponding PHP page. Here we are using the same PHP page for verifying the submitted input values. Program: <html> <head> <script> function myFunction() { document.getElementById(“myForm”).submit(); } </script> </head> <body> <form method=”post” action=”Without_button.php” id=”myForm”> <input type=”text” name=”name” /><br><br> <input type=”text” name=”mobile” /><br><br> <input type=”text” name=”age” /><br><br> </form> <div onclick=”myFunction()“>Click me</div> </body> </html> <?php $x=””; $y=””; $z=””; if(!empty($_POST[‘name‘])) { $x=$_POST[‘name‘]; echo $x. “<br>”; } if(!empty($_POST[‘mobile‘])) { $y=$_POST[‘mobile‘]; echo $y.”<br>”; } if(!empty($_POST[‘age‘])) { $z=$_POST[‘age‘]; echo $z.”<br>”; } ?> Hope, now you understand Data Submission without Submit button in PHP.  Let us have some more fun in upcoming posts.  Thanks a lot!  

By |October 5th, 2017|Blogs|0 Comments