• Post Reply Bookmark Topic Watch Topic
  • New Topic

java questions??  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1.Describe briefly 1) the definition of the method, 2) what is a void method, and 3) what is a non-void method?

2.Describe briefly 1) the definition of a constructor, 2) what role does the keyword �this� play?, and 3) what is difference between a method and a constructor?

3.What is access protection? Given two class packages and a method A, describe briefly in what situation the modifier �public� will be used in front of the method A and in what situation the modifier �private� will be used in front of A
4.What is difference between class variables and instance variables with respect to: 1) memory allocation and 2) access way
 
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, those are Java questions.
 
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

What we do not do here is answer peoples assignment questions. What would you learn if we did? Why don't you tell us what you think the answers are, and we'll give an opinion on those.
 
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jeff Albertson:
Yes, those are Java questions.


 
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you don't have a Java textbook, then you can use the online Thinking in Java.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!