This is the ultimate Java test for all those Java developer-wannabes who have just began practicing the programming language. It consists of over 93 questions of basically Core Java. So, if you are one of them and want to have a solid practice session to strengthen your hold on the concepts and methods, take it right now.
Being objective about what you develop
Designing the application based on the objects discovered when analysing the problem
Writing an algorithm before writing your program and having a test plan
Writing a program composed of Java classes
Is accessible publicly
Is only accessible by other classes of the same package
Is only accessible from within the class
Is accessible by the class and its subclasses
A class needs to be instantiated as an object before being used
An objects exists in memory in run time
Class and object are just different names for the same thing
An object is a variable, where its type is the class used to declare the variable
Description
Methods
Associations with other objects
Name
B is a sub-class of A
A is a super-class of B
B has access to private members of A
B has access to protected members of A
An attribute
A method
Attribute or method
A sub-class
Class B inherits from Class A
Class B is defined within class A
Class B has an attribute of type A
Class A has an attribute of type B
Implemented as a Java attribute member
Implemented as a Java method
Implemented as a sub-class
Implemented as a String constructor returning the name of the association target
Anything
An algorithm
A data container
A program
An object
An executable piece of code
An abstract definition of an object
A varibale
The method setSize()
Automtically in run-time
The width and height attributes of the class JFrame
WIDTH and HEIGHT properties of the window menu in Eclipse
Javax.swing
Javax.gui
Java.awt
Java.swing
A Java Application
A Java Stand-Alone Application
A Java Applet
A Java Class
Graphical User Interface
Gimme Ur Internet
Grand User Interface
Graphical Useful Interface
Automatically
By inheriting from the main container such as a JFrame or JApplet
By calling the method setLayout
By calling the method setContentPane
Add(this.mainPanel);
This.add(mainPanel);
MainPanel.setVisible(true);
GetContentPane().add(mainPanel);
JApplet
JFrame
JPanel
JButton
JButton aButton('test');
JButton aButton=new JButton("test");
JButton aButton=new JButton('test');
JButton("test") aButton;
Add(mainPanel);
This.add(mainPanel);
MainPanel.setVisible(true);
GetContentPane().add(mainPanel);
The method setSize()
Automtically in browser
The width and height attributes of the class JApplet
HTML properties WIDTH and HEIGHT of the APPLET tag.
0
1
Ar.length
Ar.length - 1
6
2+4
1+3
4
For (int i =0; i < 3; i++) System.out.println( nums[i]);
For (i = 1; i
For (i = 0; i
For (i = 1; i < 3; i++) System.out.println(nums[i]);
Ab
Ac
Ace
Bd
2
3
4
5
Wait!
Here's an interesting quiz for you.