Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What does constructor do in class?Why we use copy constructor in class. Is it necessa
#1
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?
Reply
#2
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.

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Error in Java can not find main class or can not find jvm.dll Xpert 0 1,160 06-24-2011, 07:50 AM
Last Post: Xpert
  How static class variables get initialized Vuhelper 0 840 06-09-2011, 09:56 PM
Last Post: Vuhelper
  Class design question 2011 Vuhelper 0 1,859 06-04-2011, 10:43 PM
Last Post: Vuhelper
  Why getCountStudent() method is called using Class Name instead of first making new saneha 1 5,902 04-28-2011, 09:10 PM
Last Post: Vuhelper
  AddressBookTest Class is giving error in java 2011 saneha 1 2,120 04-27-2011, 10:46 PM
Last Post: Vuhelper
  Why it is not working "CmdLineArgsApp.class" saneha 1 2,684 04-24-2011, 08:31 PM
Last Post: Vuhelper
  Sir how can we make java ".class" file as .exe file. So that we could run it directly saneha 0 5,808 04-24-2011, 05:57 PM
Last Post: saneha
  how can we make java "class" file as exe file. So that we could run it directly witho saneha 1 7,141 04-24-2011, 05:49 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)