Results 1 to 8 of 8
Thread: role of object
- 11-09-2012, 11:18 AM #1
Member
- Join Date
- Nov 2012
- Posts
- 4
- Rep Power
- 0
- 11-09-2012, 12:46 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
Re: role of object
(Moving out of staff only section.)
Please use [code] tags [/code] when posting code.
What do you mean by "create object"?Please do not ask for code as refusal often offends.
- 11-09-2012, 04:29 PM #3
Re: role of object
From what I can barely see due to the lack of [code] tags,
If you have a constructor in a class, and when you make an object, it will call the constructor automatically.
Please read this: http://docs.oracle.com/javase/tutorial/java/javaOO/constructors.html
- 11-10-2012, 05:18 AM #4
Member
- Join Date
- Nov 2012
- Posts
- 2
- Rep Power
- 0
Re: role of object
Hi,
Java virtual machine always read code from main in java application it means starting point of code is from main method in java application. And as per your code first line of main method is System.out.println("main"); which is go to print main and after the printing main jvm read the second line where you are creating an object of print.
in your written code you are not created any constructor so jvm provide you default constructor and print object will created and initializer will print....
- 11-10-2012, 06:10 AM #5
Re: role of object
bhavneetkaur, you were told about using the code tags in your first thread, a thread you never bothered to return to.
Do you seriously expect to continue to get free help on a forum without following advice already given or even acknowledging it?
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 11-10-2012, 01:47 PM #6
Re: role of object
Stop multiposting. I've deleted the two more threads you started with the same question.
Any more multiposting and you may be banned for a period.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 11-21-2012, 05:23 AM #7
Member
- Join Date
- Nov 2012
- Posts
- 4
- Rep Power
- 0
- 11-21-2012, 05:23 AM #8
Member
- Join Date
- Nov 2012
- Posts
- 4
- Rep Power
- 0
Similar Threads
-
English's role in a job as a programmer
By Blue Solo in forum Jobs DiscussionReplies: 1Last Post: 11-04-2011, 12:52 PM -
Role Division in the development of Web Application
By jeanjiang in forum Reviews / AdvertisingReplies: 2Last Post: 06-20-2011, 02:46 AM -
wrong redirection from j_security_check when user in different role
By dyyyy in forum Web FrameworksReplies: 0Last Post: 12-01-2009, 02:42 PM -
Custom role in spring security
By ngoc61 in forum Web FrameworksReplies: 1Last Post: 08-07-2009, 03:39 AM -
RAndom role dice
By thenewsaw in forum JCreatorReplies: 1Last Post: 02-07-2009, 02:10 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks