Question: 1. Select all the possible ways to cast an object, as shown in class (Select all that apply). Object obj = new Object(); Object obj
1. Select all the possible ways to cast an object, as shown in class (Select all that apply).
| Object obj = new Object(); |
| Object obj = new Watermelon(); Watermelon myMelon = (Watermelon) obj; |
| Object obj = new Watermelon(); |
| Watermelon myMelon = new Watermelon(); |
| Watermelon myMelon = obj; |
2. What is the difference between "fetch" and "pull" using Git and GitHub (Select all that apply) ?
| Fetch and Push are the same, there are no differences. |
| Pull gets the changes and merges them |
| Pull never changes any of your local branches and is safe to do without changing your working copy |
| Fetch gets the changes and merges them |
| Pull gets changes without merging them |
| Fetch never changes any of your local branches and is safe to do without changing your working copy |
| A git pull does a git fetch followed by a git merge |
| A git fetch does a git pull followed by a git merge |
| Fetch gets changes without merging them |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
