1527.Which of the following is an invalid declaration for the main method in java program?
public static void main (String [ ] args)
public static strictfp void main(String args[ ])
final static public void main (String args[ ])
All are Correct
1528.A top level class may have which one of the following access modifiers?
package
private
protected
public
1529.Visualizing program components as objects is characteristics of which of the following language types?
Object-oriented programming language
Machine language
Command line operating system
Procedural language
1533.Which of the following method is used to initialize the instance variable of a class?
Class
Public
Constructor
Destructor
1534.Object oriented programming method is followed in
C programming language
C++ programming language
C# programming language
Both b and c
1535.The last statement in a finalize method should always be
super (finalize)
super finalize()
finalize(method name)
no restrictions
1536.The methods defined by Thread class that help to manage threads are :
joined
stop
getName
all of the above
1537.Which of the following is not true about constructors?
It initializes an object immediately upon creation
It is syntactically similar to a method
The return type of class constructor is the class type itself
All of the above
1538.A default constructor has
has no arguments
has no return type
has one argument but no return type
has two arguments
1540.Which method of the thread class should be defined?
run()
start()
Both a. and b.
None of these above
- Collection
- ArrayList
- LinkedList
- Vector
- HashSet
- Conditional Statements
- Classes and Objects
- Inheritance
- Packages
- Exception Handling
- Threads
- TreeSet
- LinkedHashSet
- HashMap
- TreeMap
- LinkedHashMap
- HashTable
- Iterator and ListIterator
- String
- Scanner
- Array Small Programs
- Introduction
- Variables
- DataTypes
- Operators
- Conditional Statements
- Loop
- Arrays
- Object Oriented Programming
- Classes and Objects
- Access Modifiers
- Methods
- Abstraction
- Constructor
- Packages
- StringBuffer
- Inheritance
- StringBuilder
- Encapsulation
- Java IO
- Polymorphism
- Interface
- Types Of Variables
- Static Keyword
- Final Keyword
- Super Keyword
- This Keyword
- Exception Handling