Which line will throw compile time error? 8 or 9?
- package com.instanceofjava;
- class A
- {
- public static void main(String [] args)
- {
- Integer i = new Integer(null);
- String s = new String(null);
- }
- }
- Compile time Error at line number 9:The constructor String(String) is ambiguous
No comments:
Post a Comment