Basic computer course, C programming language, Education, Engineering Course, Engineering Courses, Maths Coaching, online computer coaching, PGDCA course coaching, programming course, school computer coaching, training, Uncategorized, Web Design course

What is Modules in Python? tccicomputercoaching.com

In programming, a module is a piece of software that has a specific functionality.

For example, when developing a big task, one module would be responsible for the one task, and another module would be responsible for another task. Each module is a different file, which can be edited separately.

modules in python

Modules in Python are simply Python files with a .py extension. The name of the module will be the name of the file. A Python module can have a set of functions, classes or variables defined and implemented.

Python is most popular programming Language in Developers.

TCCI teaches python from very basic concepts to Object Oriented concepts efficiently.

For more information about computer courses at TCCI, Python Course at TCCI, Online Computer Course.

Call us @ 9825618292

Visit us @ http://tccicomputercoaching.com/blog/

 

Basic computer course, C programming language, Education, Engineering Course, Engineering Courses, Maths Coaching, online computer coaching, PGDCA course coaching, programming course, school computer coaching, training, Uncategorized, Web Design course

What is JSF? tccicomputercoaching.com

Java Server Faces (JSF) is a Java-based web application framework intended to simplify development integration of web-based user interfaces.

1

Java Server Faces is a standardized display technology, which was formalized in a specification through the Java Community Process.

java server faces

TCCI is best coaching Institute where students can learn various courses like Basic Computer CourseProgramming CourseWeb Designing Course, Project Training Course, Web Development Course, Typing, SEO, Coaching for All Engineering Branch, Maths Coaching, School Computer Course Coaching etc.

For more information

Visit us @ http://tccicomputercoaching.com/

Call us @ 9825618292

 

Basic computer course, C programming language, Education, Engineering Course, Engineering Courses, Maths Coaching, online computer coaching, PGDCA course coaching, programming course, school computer coaching, training, Uncategorized, Web Design course

What is Java Bean in Java? tccicomputercoaching.com

Java Bean is a normal Java class which has private properties with its public getter and setter method. Java Beans are generally used as helper class. Example – public class User implements java. io. Serializable {private String name; private Integer age; public String getName(){ return this.

java bean in java

To learn more in detail about Java, Advance JavaPython, C++.

Call us @ 9825618292

Visit us @ http://tccicomputercoaching.com/contact/

 

Basic computer course, C programming language, Education, Engineering Course, Engineering Courses, Maths Coaching, online computer coaching, PGDCA course coaching, programming course, school computer coaching, training, Uncategorized, Web Design course

What is difference between friend function and friend class? tccicomputercoaching.com

The Friend function and friend class in C++ are the techniques used to access the private members of a class by using friend keyword.

Difference:

Friend function is a function used with a friend keyword to grant a non-member function access to the private members of a class.

Friend class is a class used with a friend keyword to access the private members of another class.

friend function vs class

Use:

A friend function can be used in some situation of operator overloading.

A friend class can be used when a class is created on the top of another class.

The first condition is that friend function is not inherited by a child class. The second condition is that storage class specifier may not be present in friend function, which means that it cannot be declared as static and extern.

The friend class can be declared in more than a single class. It is considered as a short alternative method for friend function because with the help of this we can create a friend class which can access the whole data members and function instead of creating multiple friend functions.

A friend function is required when a function needs to access two or more independent classes, internal members. On the other hand, a friend class is needed when a class requires accessing the members of another class. When a multiple member function needs to be a friend of that function, in that case, it is better to use friend class.

To learn C++

Call us @ 9825618292

Visit us @ http://tccicomputercoaching.com/workshop/

 

Basic computer course, C programming language, Education, Engineering Course, Engineering Courses, Maths Coaching, online computer coaching, PGDCA course coaching, programming course, school computer coaching, training, Uncategorized, Web Design course

Why do we need default constructor? tccicomputercoaching.com


Constructor 
is used to initialize an object. In other words, constructor provides memory to an object. Without initializing an object we can’t use its properties.

But there is no need to define or declare a default constructor in Java.The compiler implicitly adds a default constructor in the program if we have not declared or defined it.

default construcrtor

Example-

class Experiment

{

int a=10;

int b=20;

public static void main(String[] argus)

{

Experiment e=new Experiment(); //default constructor//

}

}

The only purpose of the constructor is to set a variable’s default value, which will be zero anyway. This default constructor will be implicitly declared and created by the compiler.

For more information about constructor in Java,Constructor in C++, TCCI.

Call us @ 9825618292

Visit us @ http://www.tccicomputercoaching.com

 

Basic computer course, C programming language, Education, Engineering Course, Engineering Courses, Maths Coaching, online computer coaching, PGDCA course coaching, programming course, school computer coaching, training, Uncategorized, Web Design course

What is the difference between Bufferreader and InputstreamReader in Java? tccicomputercoaching.com

BufferedReader and InputStreamReader are both Input Function in Java File.

BufferedReader reads a couple of characters from the specified stream and stores it in a buffer. This makes input faster.

InputStreamReader reads only one character from specified stream and remaining characters still remain in the stream.

bufferreader vs inputstreamreader

Example:

1. class NewClass{

2. public static void main(String args[]) throws InterruptedException, IOException

3. {

4. BufferedReader isr = new BufferedReader( new InputStreamReader(System.in));

5. Scanner sc = new Scanner(System.in);

6. System.out.println(“B.R. – “+(char)isr.read());

7. System.out.println(“Scanner – ” + sc.nextLine());

8. }

9. }

When the isr.read() statement is executed, I entered the input ”hello” and the character “h” of “hello” is printed on the screen. If this was InputStreamReader then the remaining characters “ello” would have remained in the System.in stream and the sc.nextLine() would have printed them. But in this case it doesn’t happens because the BufferedReader reads all of the “hello” characters from the System. in stream and stores them in its own personal buffer and thus the System. In stream remains empty when sc.nextLine() is executed.

For more information about Java, C++, Vacation Batch at TCCIPython at TCCI

Call us @ 9825618292

Visit us @ http://www.tccicomputercoaching.com

 

Basic computer course, C programming language, Education, Engineering Course, Engineering Courses, Maths Coaching, online computer coaching, PGDCA course coaching, programming course, school computer coaching, training, Uncategorized, Web Design course

What is macro in c? tccicomputercoaching.com

Macro processor that is used automatically by the compiler to transform your program before actual compilation. It is called a macro processor because it allows you to define macros, which are brief abbreviations for longer constructs.

A macro is a segment of code which is replaced by the value of macro. Macro is defined by #define directive.

macro in c

Macros in C are string replacements commonly used to define constants.

The function-like macro looks like function call. For example:

For example:-

1. #define MAX 1000

It sets the value of identifier MAX to 1000 and whenever you want to use 1000 in your program you can use MAX instead of writing 1000.

2. Argumented macro substitution (this permits us to define more complex and more useful forms of replacements):-

It takes the form:-

#define identifier (f1, f2,.., fn) string

For example, #define CUBE(x) (x*x*x)

If the following statement appear in the prog.-

Volume = CUBE (side);

Then the pre-processor will expand this statement to:

Volume = (side*side*side);

To learn more about C Programming Language

Call us @ 9825618292

Visit us @ http://www.tccicomputervoaching.com

 

Basic computer course, C programming language, Education, Engineering Course, Engineering Courses, Maths Coaching, online computer coaching, PGDCA course coaching, programming course, school computer coaching, training, Uncategorized, Web Design course

Why we need Constructor? tccicomputercoaching.com

Generally in Programming methods can be accessed through objects of class.

Constructor is the normal method that is invokes automatically when we create an object. The main reason for having the constructor is to initialize the variables.

why need constructor

In java Constructor providing memory for referenced variables (non static variables).

Constructor name and class name must be same.

If we are not create any constructor compiler will adds default zero argument constructor to your java file.

We can put only return keyword in Constructor.

TCCI Coaching Institute provides various computer courses to school, College students and any persons in Bopal and Satellite in Ahmedabad.

For more information about Courses at TCCI

Call us @ 9825618292

Visit us @ http://www.tccicomputercoaching.com

 

Basic computer course, C programming language, Education, Engineering Course, Engineering Courses, Maths Coaching, online computer coaching, PGDCA course coaching, programming course, school computer coaching, training, Uncategorized, Web Design course

Why we need Pointer in Programme? tccicomputercoaching.com

Any time you need to pass a data structure you need a pointer. You can pass simple data types (char, float, or int) but if you want to get a value back from a function more than just a return value, you need a pointer.

pointer in prograame

Where you wish to pass a large chunk of memory through a function argument.

1. You would like to change a variable across files and one good practice is to send that variable as a pointer and get modified in called function.

Linked lists, where the devices are getting attached and removed at run time.

There are many advantages of pointers such as-

  • They are used to save memory.
  • When two references point to the same memory location.
  • Can be used in the form of parameter passing.

To learn Various Programming Languages like C, C++, Java, Python, .Net at TCCI Coaching Institute.

Contact us @ 9825618292

Visit us @ http://www.tccicomputercoaching.com

 

Basic computer course, C programming language, Education, Engineering Course, Engineering Courses, Maths Coaching, online computer coaching, PGDCA course coaching, programming course, school computer coaching, training, Uncategorized, Web Design course

Why are User defined Functions used? tccicomputercoaching.com

There are 2 types of functions in Programming.

Built in and User Defined Function.

Built in means already written, tested and stored in one file.

User Defined Function user develop, compile and run at a time.

Definition:

User-defined functions allow the programmer and “user”—to put same code together that performs one “function”.

We divide one complex and lengthy task in different modules. So, there are so many advantages.

user defined function in programming

Advantages of User Defined Function:

1. It would be easy to solve errors module wise.

2. Reuse the code in your function.

3. You get easier to read code,

a. Since you don’t mix the what (should be done) with thehow (it should be done) everywhere. Instead, you just say what you want by calling your lower level function and that deals with the details of how it must do its work.

4. Decreases the length of the programme.

5. The smaller user defined functions can be more easily tested or replaced by improved versions.

6. We can just call when it need in programme , don’t need to repeat code again.

a. Because it is an implementation of some action wrapped in an interface (the name and the defined set of inputs and outputs). Once you’ve defined it, you can call it in other places in your code without caring about how it does what it does; all you need to know is the interface and purpose.

TCCI Coaching Institute is located in Bopal and Satellite in Ahmedabad. We teach various Programming Languages, Engineering course, Web Designing, basic Computer course etc.

To know in detail about TCCI.

Call us @ 9825618292

Visit us @ http://tccicomputercoaching.com/course/