variables of non-primitive types, constructors IO
Posted on 2006-04-06
what are vars of non-primitive type for?
i.e Integer ten = new Integer(10)
Whats the purpose of the Integer(10)?
Do we have to declare them null initially always?
2. Why do we declare package xxx; on top..
3. What happens if there is no constructors for a class?
How do we declare multiple constructors to point to
other constructors? Can constructors have params?
4. In I/O, what is Integer.parseInt(), StringTokenizer for?
also what is the flush in writer.flush() ;
5. Whats the sequence of evaluation for
int val = 10 * 5 / 5 + 2 % 1