Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Employee
- {
- /**
- * Employee's name
- * @deprecated New version uses firstName and lastName fields.
- */
- @Deprecated
- String name;
- String firstName;
- String lastName;
- public static void main(String[] args)
- {
- Employee emp = new Employee();
- emp.name = "John Doe";
- }
- }
Add Comment
Please, Sign In to add comment