Virtual Position Forum
Please register to watch content in detail
Thanks
Admin virtual position


Join the forum, it's quick and easy

Virtual Position Forum
Please register to watch content in detail
Thanks
Admin virtual position
Virtual Position Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

What does constructor do in class?Why we use copy constructor in class. Is it necessa

View previous topic View next topic Go down

GMT + 3 Hours What does constructor do in class?Why we use copy constructor in class. Is it necessa

Post by Diya Sun May 29, 2011 3:03 pm

1: What does constructor do in class?
2: Why we use copy constructor in class. Is it necessary?
3: What is meant by "multithreaded" and
Robust memory system?
Diya
Diya
Monstars
Monstars

Taurus Goat
Posts : 364
Join date : 2011-02-08
Age : 33
Notworthy

Character sheet
Experience:
What does constructor do in class?Why we use copy constructor in class. Is it necessa Left_bar_bleue10/500What does constructor do in class?Why we use copy constructor in class. Is it necessa Empty_bar_bleue  (10/500)

Back to top Go down

GMT + 3 Hours Re: What does constructor do in class?Why we use copy constructor in class. Is it necessa

Post by Vuhelper Sun May 29, 2011 3:04 pm

Constructor is a method which runs just once on the creation of an object for a class and mostly is used for initializations.
Copy constructor helps in making two different objects with same state.
Java is also a Multithreaded programming language. Multithreading means a single program having different threads executing independently at the same time. Multiple threads execute instructions according to the program code in a process or a program. Multithreading works the similar way as multiple processes run on one computer.
Java has the strong memory allocation and automatic garbage collection mechanism. It provides the powerful exception handling and type checking mechanism as compare to other programming languages. Compiler checks the program whether there any error and interpreter checks any run time error and makes the system secure from crash. All of the above features makes the java language robust.
avatar
Vuhelper
Deep Bench
Deep Bench

Posts : 97
Join date : 2011-05-29

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum