How many bytes is a character?
What is the difference between superclass and subclass?
To set the position and size of a component, which methods are used?
What happens if main method is not static?
How to create two different thread class inside a main function?
Is delete, next, main, exit or null keyword in java?
What is super in java?
Name and explain the types of ways which are used to pass arguments in any function in java.
I need to know about complete topic in java's collections i with an examples
why we write public static void main (String args[]) in core java plz explain briefly??????????????????
Which programming language is best in future?
What will be the output of the program? public class Test { public static void main(String args[]) { ArrayList<String> list = new ArrayList<String>(); list.add("2"); list.add("3"); list.add("4"); list.add("5"); System.out.println("size :"+list.size()); for(int i=0;i<list.size();i++) { list.remove(i); } System.out.println("size after:"+list.size()); } }
10. class Nav{ 11. public enum Direction { NORTH, SOUTH, EAST, WEST } 12. } 13. public class Sprite{ 14. // insert code here 15. } Which code, inserted at line 14, allows the Sprite class to compile? a)Direction d = NORTH; b)Nav.Direction d = NORTH; c)Direction d = Direction.NORTH; d)Nav.Direction d = Nav.Direction.NORTH;