• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Intermediate Queries....

 
Deepak Lal
Ranch Hand
Posts: 561
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please help me out with below questions



1>Can we overload a public static void Main method in java?

2>List L1 = new ArrayList();
List L2 = new ArrayList();
L1=L2;
L2.add("COOL");
System.out.println("L1 ::"+L1); //what will List L1 print in above case ?

3>Can a class be declared as Private ?
 
Thomas Thevis
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why don't you put these question in the beginner thread and why don't you try it yourself? Put your code into java classes, run them, and if you don't understand the results come back here later and post your questions.
[ September 27, 2008: Message edited by: Thomas Thevis ]
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Thomas Thevis:
... Put your code into java classes, run them, and if you don't understand the results come back here later and post your questions.

Excellent advice!

The best way to learn is to dive in and practice with test code. (As your signature says, "When the going gets tough...") We're here to help when you need it, but I don't think you need our help with these questions quite yet.
[ September 27, 2008: Message edited by: marc weber ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic