0 Members and 2 Guests are viewing this topic.
String[] maga= {"you", "lost", "the", "game"};for(String omni:maga} System.out.println(omni);
What is the difference between an interface and an abstract class?The only difference I can see is that all methods in an interface are abstract, while abstract class can contain both concrete and abstract methods.
Can you define fields inside an interface or abstract class, and what would those be used for?
What the heck does Encapsulation mean?
What is the difference between a static method and a non-static method?
Is this an example of an enhanced for loop?Code: [Select]String[] maga= {"you", "lost", "the", "game"};for(String omni:maga} System.out.println(omni);
Technically, it's not a primitive type, but I still kinda like to think of it as one... Idk(ninja'd)
/*** @author ElementCoder* This class is an example.*/public class Example{ /** * @author ElementCoder * @version 1.0 * @param par1 first parameter * @param par2 second parameter * Method description here. */ public void myMethod(int par1, String par2){}}
ArrayList<Integer> myList = new ArrayList<Integer>();myList.add(1); //AutoboxingmyList.add(2); //Autoboxingint x = myList.get(0); //Unboxing
Okay... I think I get it.I also have some more questions (our teacher went over topics and we all pretended we knew everything to avoid embarrassment ).What's a javadoc and everything to do with it?What's Autoboxing (and will it be on the AP test)?I took a practice and got 69.3 - a 5 is 60-80. Do you think I'm safe from getting a 4 if I make dumb mistakes?
What? 60-80 out of 100?