What does constructor do in class?Why we use copy constructor in class. Is it necessa
Virtual Position Forum :: Members Lounge :: Sciences & Knowledge :: Programing and Design :: Java Forum
Page 1 of 1 • Share
What does constructor do in class?Why we use copy constructor in class. Is it necessa
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?
2: Why we use copy constructor in class. Is it necessary?
3: What is meant by "multithreaded" and
Robust memory system?
Diya- Monstars
-
Posts : 364
Join date : 2011-02-08
Age : 32
Character sheet
Experience:
(10/500)
Re: What does constructor do in class?Why we use copy constructor in class. Is it necessa
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.
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.
Vuhelper- Deep Bench
- Posts : 97
Join date : 2011-05-29
Similar topics
» Why it is not working "CmdLineArgsApp.class"
» Android: Messages - How to delete/copy a Viber
» Why getCountStudent() method is called using Class Name instead of first making new
» Notepad Class 2
» Notepad Class 1
» Android: Messages - How to delete/copy a Viber
» Why getCountStudent() method is called using Class Name instead of first making new
» Notepad Class 2
» Notepad Class 1
Virtual Position Forum :: Members Lounge :: Sciences & Knowledge :: Programing and Design :: Java Forum
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Today at 9:57 am by Ibad Khan Buledi
» house disrepair claims
Mon Apr 22, 2024 11:23 am by Joshuaadam
» Aloha Planner - Note-Taker
Thu Apr 11, 2024 4:52 pm by ali001
» Streaming Guide Film TV Series
Tue Apr 09, 2024 9:39 pm by ali001
» Apricot Tree Problems & Solutions ????|خوبانی کے پھل کو کیڑا لگنےسے بچانے کا طریقہ ????
Sun Apr 07, 2024 6:28 am by Zamaan Khan
» خوبانی کے پودے کی کاشت گرم علاقوں میں کرنی چاہیے یا نہی
Sun Apr 07, 2024 6:24 am by Zamaan Khan
» New Here
Sun Apr 07, 2024 6:15 am by Zamaan Khan
» Bajta Hua Sochoon Main Koi Saaz Na Aaye Naat
Sun Apr 07, 2024 6:14 am by Zamaan Khan
» Woh Pagal Si Episode 52 to 62 - Top Pakistani Drama
Sun Apr 07, 2024 6:06 am by Zamaan Khan