Thursday, 25 December 2014

Use of Continue and Break Keywords in PHP



Well these both keywords continue and break  are very familiar keywords in every programming language and are used vastly in daily programming exercises.  I will explain where these keywords can be used in programming like loops (for loop, while loop, do while loop), and switch case etc.  well both break and continue have very different roles in a program  and there functioning is quite different, I will explain their differences with proper practical examples.

Break keyword and its functioning

In every programming language every keyword have their logical meaning, so as per the logical meaning of break, it means that to break something midway and came out of that thing. Mostly it is used in loops and switch case.  Below is the example with proper explanation and output result of break keyword.

Example 1:-
<?php
For($i=1; $i<=10; $i++)
{
echo  $i;
}
?>
Output result example 1 :--   1 2 3 4 5 6 7 8 9 10
Example 2:-
<?php
For($i=1; $i<=10; $i++)
{
echo  $i;
If($i==5) break;
}
?>
Output result  example 2  :-   1 2 3 4 5
See in example 2  we have used the break keyword in for loop which is printing from no. 1 to 10, and we have used the break keyword on condition when value of variable I will be 5 the loop will break and the control  shifts out of loop. So in example 2 it is printing only upto number 5.

Continue keyword and its functioning

The keyword continue is also used in the loops, but unlike break keyword it is used for continuing the loop. In simple words the point where continue keyword will be used in the loop the loop will not function below that point and continue from there only.  This thing will be more clear by the following example.
Example 3:-                                                                                       
<?php
For($i=1; $i<=5; $i++)
{
echo “hello”;
echo “world,”;
}
?>
Output result example 3 :-  hello world, hello world, hello world, hello world, hello world
Example 4 :-
<?php
For($i=1; $i<=10; $i++)
{
echo “hello”;
If($i>=3) continue;
echo “world,”;
}        
?>
Output result example 4  :-   hello world, hello world,  hello,  hello,  hello

See in example 4 in result it has printed complete hello world only two times and the rest of time it printed only hello.  Because when two times it printed complete sentence hello world, on third time when the if condition becomes true($i>=3), then continue keyword executed and it continued the loop from that point to increment the value of $i=4 and didn’t printed the below statement world.  So in simple words the point where continue keyword will execute the statements below continue keyword in a loop will not be printed.

Friday, 5 December 2014

What Should Be Your First Programming Language?

As a programming language java has some special characteristics that made it prominent. This language is class-based, concurrent and object oriented. Java can run on any java virtual machine. Java family is vast and it is proudly serving with over nine million developers. Google’s preferences in Java for android development certified java’s credibility. This is a clear indication of java’s bright future. This nine million people and world’s admired companies have put their trust in java and they are successful. The scopes of java are increasing.

Java commenced its journey in 1991 and since then it is ruling the path it walked upon. Java was designed for interactive television but it seemed much more developed. So after proper development and renovation it has come in today’s form. Java is dominating programming language and it is in the same page of “C”, “UNIX” type strong language. The reasons behind java’s success are its principles, those are making java a standout and they are as follows:

• Simple, familiar and object-oriented
• Secure and robust.
• Portable and architecture-neutral
• Interpreted, dynamic and threaded
• Supreme performance.



These were the primary goals of java and it has maintained it efficiently. This is how java has taken the programming language into an advanced level. It is platform independent and has vast open source libraries. Rich API and powerful development tools have made java a user friendly and easy to learn. This is why the language offers such career opportunities.

This indicates that java, as a programming language, will surely be beneficial. Being successful in java is not so easy. It requires ethical, dynamic and object oriented consideration like java itself. Proper understanding and training is important to learn this language. Guideline is important too and that can be attained by qualitative training only.

Selecting six month java training is the first thing that comes in people’s mind. But the concern should be selecting a legitimate one. Certified training organization assist in numerous manner. They can offer legitimate certificate plus connections to organizations those are based on java. Webcom placement program is one of the best in this segment containing collaboration with Top companies. Another important part of java training is its course outline.

Webcom offering six months/weeks Java training which covers all important modules so that in future a student can develop a project independently. Most Important Webcom has designed six month/weeks  java course taking care that it covers complete syllabus of Btech, BCA, MCA, and other diploma courses from various colleges.

Java has numerous work opportunities and the career it offers is really amazing. It has been admired in the first world since the commencement and India, being strongly participating in the information and technology ground, is also becoming a vast work place of java family. Above all Webcom has best faculty members who will teach you Java in 6 months/weeks industrial training course.

Sunday, 16 November 2014

Webcom for Best Industrial Training in Chandigarh



I have heard numerous people who stepped and stuck on typical industrial training institute for a better future. But most of them failed and they even get angry if people claim that they are the best. The truth is I don’t blame those institutes. 

The fault is in those who believed them. If they handled those institutes practically, rather emotionally, they would have gained success by now. This has become a common psychology, only hit if there is the “BEST” word. But please choose smartly. If you are looking for a better career, you have to be at least that smart-choosing whom to trust.
 
Now let me introduce our company Webcom. We are operating in Chandigarh. Best industrial training in Chandigarh or not - this is for you to consider. Webcom is in the Information and technology arena for more than two decades, incase, you do not want to depend on a newbie. We started from a vision of building up trained, motivated plus invincible professionals. The truth is, over the years we have developed ourselves too.

Now we have promising course outline, in house plus remote training facilities, each and every equipments, (our own) that you ever desire to master plus we provide logical course duration. We consider course duration carefully as most of the professional do not have much time, yet they need to be highly trained. While it is a concern of trainers, I have a challenge for you, defeat them; hire anyone but just defeat them if you can.
     
Who can enroll in these courses? We are offering training from chef to chief. If you are a fresher desiring to start your career, we are here. 

If you are already a professional but desire to be among the best, we are for you too. People have been coming from different background to us and we are renovating their capabilities since the day one. We are proud to claim that some of the top professionals are from our institute. So if you are still in a fix, just take your pick. No matter what courses you pick, you will be the best, not us, in that segment-promise.