Saturday, 6 May 2017

java coaching in jaipur

"SPC Computer Classes is one of Jaipur's fastest growing, education and Java Training providers in Jaipur & within the span of these few years it has hold its positions among the others by providing enormous training, high-end career prospective to the fresher as well as working professionals SPC provides the best Java Training in Jaipur for students, The Java training in jaipur courses are provided based on the industry demand. The focus is on providing quality IT/ Mgmt education comparable to standards set by educational." 

This Java training course is intended for students without an extensive programming background. It covers most Java syntax elements, concentrating on fundamental and universally useful elements, while providing an overview of many more advanced elements.

Topic List -
  • Introduction to Java
  • Why java is better for Internet?
  • Features of Java
  • Memory Management in java
  • Lexical Analysis
  • Tokens of Java
  • Programming Tips
  • Class and Objects
  • Inner Classes of Java
  • Inheritance
  • Method Overriding
  • Method Overloading
  • Polymorphism of Java
  • Encapsulation
  • Wrapper Classes
  • Packages of Java
  • Interface of Java
  • Exception Handling
  • Input and Output and File Handling
  • String class
  • Utility Classes of Java
  • Java Applet
  • Applet With Running Graphics
  • Mouse handling with Applet







Java training institute in jaipur

"SPC Computer Classes is one of Jaipur's fastest growing, education and Java Training providers in Jaipur & within the span of these few years it has hold its positions among the others by providing enormous training, high-end career prospective to the fresher as well as working professionals SPC provides the best Java Training in Jaipur for students, The Java training in jaipur courses are provided based on the industry demand. The focus is on providing quality IT/ Mgmt education comparable to standards set by educational." 

This Java training course is intended for students without an extensive programming background. It covers most Java syntax elements, concentrating on fundamental and universally useful elements, while providing an overview of many more advanced elements.

Topic List -
  • Introduction to Java
  • Why java is better for Internet?
  • Features of Java
  • Memory Management in java
  • Lexical Analysis
  • Tokens of Java
  • Programming Tips
  • Class and Objects
  • Inner Classes of Java
  • Inheritance
  • Method Overriding
  • Method Overloading
  • Polymorphism of Java
  • Encapsulation
  • Wrapper Classes
  • Packages of Java
  • Interface of Java
  • Exception Handling
  • Input and Output and File Handling
  • String class
  • Utility Classes of Java
  • Java Applet
  • Applet With Running Graphics
  • Mouse handling with Applet







Java training in jaipur

"SPC Computer Classes is one of Jaipur's fastest growing, education and Java Training providers in Jaipur & within the span of these few years it has hold its positions among the others by providing enormous training, high-end career prospective to the fresher as well as working professionals SPC provides the best Java Training in Jaipur for students, The Java training in jaipur courses are provided based on the industry demand. The focus is on providing quality IT/ Mgmt education comparable to standards set by educational."

This Java training course is intended for students without an extensive programming background. It covers most Java syntax elements, concentrating on fundamental and universally useful elements, while providing an overview of many more advanced elements.

Topic List -
  • Introduction to Java
  • Why java is better for Internet?
  • Features of Java
  • Memory Management in java
  • Lexical Analysis
  • Tokens of Java
  • Programming Tips
  • Class and Objects
  • Inner Classes of Java
  • Inheritance
  • Method Overriding
  • Method Overloading
  • Polymorphism of Java
  • Encapsulation
  • Wrapper Classes
  • Packages of Java
  • Interface of Java
  • Exception Handling
  • Input and Output and File Handling
  • String class
  • Utility Classes of Java
  • Java Applet
  • Applet With Running Graphics
  • Mouse handling with Applet









Friday, 5 May 2017

ACCESSING THE MEMBERS OF A STRUCTURE in C Language

Individual structure members can be used like other variables of the same type. Structure members are accessed using the structure member operator (.), also called the dot operator, between the structure name and the member name. The syntax for accessing the member of the structure is:
structurevariable. member-name;

Let us take the example of the coordinate structure.
struct coordinate{
int x;
int y;
};

Thus, to have the structure named first refer to a screen location that has coordinates x=50, y=100, you could write as,
first.x = 50;
first.y = 100;

To display the screen locations stored in the structure second, you could write,
printf ("%d,%d", second.x, second.y);
The individual members of the structure behave like ordinary date elements and can be accessed accordingly.
Now let us see the following program to clarify our concepts. For example, let us see, how will we go about storing and retrieving values of the individual data members of the student structure.
Visit our site for Registration c language coaching in jaipur

DECLARATION OF STRUCTURES in C

To declare a structure you must start with the keyword struct followed by the structure name or structure tag and within the braces the list of the structure’s member variables. Note that the structure declaration does not actually create any variables. The syntax for the structure declaration is as follows:
struct structure-tag {
datatype variable1;
datatype variable2;
dataype variable 3;
...
};
For example, consider the student database in which each student has a roll number, name and course and the marks obtained. Hence to group this data with a structure-tag as student, we can have the declaration of structure as:
struct student {
int roll_no;
char name[20];
char course[20];
int marks_obtained ;
};
The point you need to remember is that, till this time no memory is allocated to the structure. This is only the definition of structure that tells us that there exists a user-defined data type by the name of student which is composed of the following members. Using this structure type, we have to create the structure variables:
struct student stud1, stud2 ;
At this point, we have created two instances or structure variables of the user-defined data type student. Now memory will be allocated. The amount of memory allocated will be the sum of all the data members which form part of the structure template.

Visit our site for Registration c language coaching in jaipur

Structure in C

We have seen so far how to store numbers, characters, strings, and even large sets of these primitives using arrays, but what if we want to store collections of different kinds of data that are somehow related. For example, a file about an employee will probably have his/her name, age, the hours of work, salary, etc. Physically, all of that is usually stored in someone’s filing cabinet. In programming, if you have lots of related information, you group it together in an organized fashion. Let’s say you have a group of employees, and you want to make a database! It just wouldn’t do to have tons of loose variables hanging all over the place. Then we need to have a single data entity where we will be able to store all the related information together. But this can’t be achieved by using the arrays alone, as in the case of arrays, we can group multiple data elements that are of the same data type, and is stored in consecutive memory locations, and is individually accessed by a subscript. That is where the user-defined datatype Structures come in.

Structure is commonly referred to as a user-defined data type. C’s structures allow you to store multiple variables of any type in one place (the structure). A structure can contain any of C’s data types, including arrays and other structures. Each variable within a structure is called a member of the structure. They can hold any number of variables, and you can make arrays of structures. This flexibility makes structures ideally useful for creating databases in C. Similar to the structure there is another user defined data type called Union which allows the programmer to view a single storage in more than one way i.e., a variable declared as union can store within its storage space, the data of different types, at different times.

Visit our site for Registration c language coaching in jaipur

Thursday, 27 April 2017

In Java protected Keyword

In Java protected Keyword

Protected specifiers allows the class itself, subclasses, and all classes in the same package to access the members. You should use the protected access level for those data members or member functions of a class, which you can be accessed by subclasses of that class, but not unrelated classes. You can see protected members as family secrets–you don’t mind if the whole family knows, and even a few trusted friends but you wouldn’t want any outsiders to know. A member can be declared protected using keyword protected.

public class Student
{
         protected int age;
         public String name;
         protected void protectedMethod()
        {
                  System.out.println("protectedMethod");
        }
}

Visit our site for Registration java coaching in jaipur

Private Keyword in Java

Private Keyword in Java

Private is the most restrictive access level. A private member is accessible only to the class in which it is defined. You should use this access to declare members that you are going to use within the class only. This includes variables that contain information if it is accessed by an outsider could put the object in an inconsistent state, or methods, if invoked by an outsider, could jeopardize the state of the object or the program in which it is running. You can see private members like secrets you never tell anybody.
To declare a private member, use the private keyword in its declaration. The following class contains one private member variable and one private method:
class First
{
private int MyPrivate; // private data member
private void privateMethod() // private member function
{
System.out.println("Inside privateMethod");
}
}
Objects of class First can access or modify the MyPrivate variable and can invoke privateMethod.Objects of other than class First cannot access or modify MyPrivate variable and cannot invoke privateMethod . For example, the Second class defined here:
class Second {
void accessMethod() {
First a = new First();
a. MyPrivate = 51; // illegal
a.privateMethod(); // illegal
}
}
cannot access the MyPrivate variable or invoke privateMethod of the object of First.
If you are attempting to access a method to which it does not have access in your program, you will see a compiler error like this:
Second.java:12: No method matching privateMethod()
found in class First.
a.privateMethod(); // illegal
1 error
One very interesting question can be asked, “whether one object of class First can access the private members of another object of class First”. The answer to this question is given by the following example. Suppose the First class contained an instance method that compared the current First object (this) to another object based on their iamprivate variables:
class Alpha
{
private int MyPrivate;
boolean isEqualTo (First anotherObject)
{
if (this. MyPrivate == anotherobject. MyPrivate)
return true;
else
return false;
}
}
This is perfectly legal. Objects of the same type have access to one another’s private members. This is because access restrictions apply at the class or type level (all instances of a class) rather than at the object level.

Visit our site for Registration java coaching in Jaipur

ACCESS CONTROL in Java

ACCESS CONTROL in Java


One of the objectives of having access control is that classes can protect their member data and methods from getting accessed by other objects. Why is this important? Well, consider this. You’re writing a class that represents a query on a database that contains all kinds of secret information; say student’s records or marks obtained by a student in final examination.
In your program you will have certain information and queries contained in the class. Class will have some publicly accessible methods and variables in your query object, and you may have some other queries contained in the class simply for the personal use of the class. These methods support the operation of the class but should not be used by objects of another type. In other words you can say–you’ve got secret information to protect.
How can you protect it?
Ok in Java, you can use access specifiers to protect both variables and methods of a class when you declare them. The Java language supports four distinct access specifiers for member data and methods: private, protected, public, and if left unspecified, package.
The following chart shows the access level permitted by each specifier.

The first column indicates whether the class itself has access to the members defined by the access specifier. As you can see, a class always has access to its own members.
The second column indicates whether subclasses of the class (regardless of which package they are in) have access to the member.
The third column indicates whether classes in the same package as the class (regardless of their parentage) have access to the member.
The fourth column indicates whether all classes have to the member.

Visit our site for java coaching in Jaipur

Superclass and Subclass in Java

Superclass and Subclass in Java


The superclass of a class A is the class from which class A is derived. In programming languages like C++, allow deriving a class from multiple classes at a time. When a class inherits from multiple super classes, the concepts is known as multiple inheritance. Java doesn’t support multiple inheritance. If there is a need to implement multiple inheritance.

A class derived from the superclass is called the subclass. Sometime-superclass is also called parent class or base class and subclass is called as child class or derived class. The subclass can reuse the data member and methods of the superclass that were already implemented and it can also extend or replace the behaviour in the superclass by overriding methods. Subclass can have its own data members and member functions.
You can see in this example program, the Employee class is used for tracking the hours an employ worked for along with the hourly wages, and the “attitude” which gives you a rough measure of their activeness or for what percentage of time they are actually productive.

public class Employee
{
protected double attitude;
protected int numHoursPerWeek, wagePerHour;
public Employee(int wage, int hours, double att) // constructor
{
wagePerHour = wage;
numHoursPerWeek = hours;
attitude = att;
}
public double getProductivity()
{
return numHoursPerWeek*attitude;
}
public double getTeamProductivity()
{
return getProductivity();
}
public int WeekSalary()
{
return wagePerHour*numHoursPerWeek;
}
}

If you look closely you will observe that Employee class possesses the very basic characteristics of an employee. So think quickly about different type of employees! Of course you can think about employees with special characteristics, for example, Manager Engineer, Machine-man etc. You are right Subclass of Employee, will have properties of Employee class as well as some more properties.


Visit our site for java training in jaipur