Anda di halaman 1dari 22

Which of the following

Wolffiahasmicroscopica
the smallest flower?
Central Vigilance Commission
Santhanam was Committee
set up on the recommendation of
Classify the sequenceAmmai,of Vanappu:
Azhagu, Thonmai, Thol
India's best qualityTemperate
sheep rearing Himalaya
is done in which of the following regions?
The host cells in human
T4 lymphocyte
physiological system for HIV causing AIDS are
Which is the only apeGibbonfound in India?
Who is considered Rajaas the Rammohan
father of Indian,
Roy Renaissance?
The central teaching(s)
both Karma
of the Vedas
and Jnana
is / are?
A plant that lives inLimnophyte
a pond is called as
Punjab and Haryana westerly
receivedisturbances
rainfall from
What is the maximum 14 daystime given to Rajya Sabha for money bill?
Chittanavasal is situated
Pudukkottaiin
The indicator(s) of A)development
growth in national
according income
to modern
B) growth
ideology
in peris/are
capita income C) high rate of capital
The topmost atmospheric
ionosphere layer is called
New Enterpreneurs Agency 1980was established on
Who was the last Governor
Lord Canning General of the English East India Company?
Dars'ana is The vision of truth
The study of age ofDendrochronology
the trees by counting annual rings is called
Azad Hind Fauj wasIndian National Army
Planning Commission of1950 India was set up in the year
The Election Commission of3 India is a body of……..members.
The Pandiyan
king who put an
end of the
Kalabhra rule is Kadungon
Narai mudithu sollal Karikalan
murai seidha cholan” is
The plan launched Ninth
on theFive-Year
fiftieth year
Planof Independence was
The north-eastern BaypartsofofBengal
Himalayas
branch receive more than 300 cm rainfall by
The name of scalesCtenoid
in Mullet fish is
Who was praised as Wife
“Minnanar
of Kusela Vanangum Deivam”?
The construction ofQutb-ub-din-Aibak
Qutb-Minar was started by
In Tamil Nadu there three
is a……..tier system of Rural local government
Tamil Nadu is………..in Eleventhgeographical area among the states of the Indian union
According to 2001 1.027
Census, billion
India’s population was
The stepping stoneSchool
for the progress of the society is
The ultraviolet raysskin
from cancer
the sunlight causes
One a.m.u is equal931 to Mev
The Operation Flood milkProgramme
productionrelatesdevelopment
to
The Andes mountain Southrange America
is located
The state which ranksPunjab first in per capita income is
Incidence of ‘YeasuSamaria
Kaviyam’ (Yeasu
was held
Kaviyam
at written by Kannadasan)
Vellore Sepoy Mutiny 1806 wasA.D fought in
Two prominent leadersSatyapal of Punjab
and Saifuddin
were arrested
Kichloo
in connection with the hartal against Rowlatt Act. The
Large number of jute Hooghly
mills found on the banks of the river
The Samarasa Suttha Vallalar
Sanmarga Sangam was founded by
Rajya Sabha members six years
are elected for a period of
Insulin is a/an therapeutic product
The first known metal
Copperto man is
Formation of red blood
bonecellsmarrow
in a normal
(Life span:
human
120 adult
days;occurs
disintegrated
in in spleen)
The melting point of
961 silver
Degree
is Celcious
75
(24 Carat
= 100%
22 Carat
18 ct contains……% = weight
91.6%)of gold.
8
(8×8×8
= 512)
The cube root of 512 is
The First PresidentDr.
of India
Rajendra
was Prasad
The main aim of non-co-operation
to attain Swaraj movement was
Bauxite is an ore ofAluminium
The headquarters ofGeneva
World Trade Organisation is at
Who bagged two Oscar
AR Rahmanawards for the film ‘Slumdog Millionaire’?
Who bagged 1st Indian
Bhanu toAthaiya
win Oscar
Winner of "LifetimeSatyajit
Achievement
Ray: Oscar Award"
Who received the Padma
SarojiniBhushan
Varadappan
award for social work in 2009?
Who was the President
A.P.J.of Abdul
IndiaKalam
during the year 2002- 2007?
Mahatma Gandhi National 2009Rural Employment Scheme was introduced in the year
C) high rate of capital
What is MVC? Model-View-Controller (MVC) is a design pattern put together to help control change. MV
What is a framework?
A framework is made up of the set of classes which allow us to use a library in a best po
What is Struts framework?
to help control change. MVC decouples interface from business logic and data. Model : The model contains the
to use a library in a best possible way for a specific requirement.
e model contains the core of the application's functionality. The model encapsulates the state of the application
ate of the application. Sometimes the only functionality it contains is state. It knows nothing about the view or c
g about the view or controller.View: The view provides the presentation of the model. It is the look of the applic
the look of the application. The view can access the model getters, but it has no knowledge of the setters. In ad
e of the setters. In addition, it knows nothing about the controller. The view should be notified when changes to
ied when changes to the model occur.Controller:The controller reacts to the user input. It creates and sets the m
reates and sets the model
What is the difference between an Interface and an Abstract class?
What is the purpose of garbage collection in Java, and when is it used?
Describe synchronization in respect to multithreading.
Explain different way of using thread?
What are pass by reference and passby value?
What is HashMap and Map?
Difference between HashMap and HashTable?
Difference between Vector and ArrayList?
Difference between Swing and Awt?
What is the difference between a constructor and a method?
What is an Iterator?
State the significance of public, private, protected, default modifiers both singly and in combination
What is an abstract class?
What is static in java?
What is final?
What if the main method is declared as private?
What if the static modifier is removed from the signature of the main method?
What if I write static public void instead of public static void?
What if I do not provide the String array as the argument to the method?
What is the first argument of the String array in main method?
If I do not provide any arguments on the command line, then the String array of Main method will b
How can one prove that the array is not null but empty using one line of code?
What environment variables do I need to set on my machine in order to be able to run Java program
Can an application have multiple classes having main method?
Can I have multiple main methods in the same class?

Do I need to import java.lang package any time? Why ?

Can I import same package/class twice? Will the JVM load the package twice at runtime?

What are Checked and UnChecked Exception?


What is Overriding?
An abstract class can have instance methods that implement a default behavior. An Interface can only declare c
The purpose of garbage collection is to identify and discard objects that are no longer needed by a program so
With respect to multithreading, synchronization is the capability to control the access of multiple threads to sha
The thread could be implemented by using runnable interface or by inheriting from the Thread class. The forme
Pass By Reference means the passing the address itself rather than passing the value. Passby Value means pas
Map is Interface and Hashmap is class that implements that.
The HashMap class is roughly equivalent to Hashtable, except that it is unsynchronized and permits nulls. (Hash
Vector is synchronized whereas arraylist is not.
AWT are heavy-weight componenets. Swings are light-weight components. Hence swing works faster than AWT
A constructor is a member function of a class that is used to create objects of that class. It has the same name
Some of the collection classes provide traversal of their contents via a java.util.Iterator interface. This interface
public : Public class is visible in other packages, field is visible everywhere (class must be public too).
Abstract class must be extended/subclassed (to be useful). It serves as a template. A class that is abstract may
Static means one per class, not one for each object no matter how many instance of a class might exist. This m
A final class can't be extended ie., final class may not be subclassed. A final method can't be overridden when it
The program compiles properly but at runtime it will give "Main method not public." message.
Program compiles. But at runtime throws an error "NoSuchMethodError".
Program compiles and runs properly.
Program compiles but throws a runtime error "NoSuchMethodError".
The String array is empty. It does not have any element. This is unlike C/C++ where the first element by defau
It is empty. But not null.
Print args.length. It will print 0. That means it is empty. But if it would have been null then it would have throw
CLASSPATH and PATH are the two variables.
Yes it is possible. While starting the application we mention the class name to be run. The JVM will look for the
No the program fails to compile. The compiler says that the main method is already defined in the class.

No. It is by default loaded internally by the JVM.


One can import the same package or same class multiple times. Neither compiler nor JVM complains abt it. And
internally load the class only once no matter how many times you import the same class.A checked exception is
subclass of Exception (or Exception itself), excluding class RuntimeException and its subclasses. Making an exce
checked forces client programmers to deal with the possibility that the exception will be thrown. eg, IOExceptio
java.io.FileInputStream's read() method·Unchecked exceptions are RuntimeException and any of its subclasses.
and its subclasses also are unchecked. With an unchecked exception, however, the compiler doesn't force client
programmers either to catch the
exception or declare it in a throws clause. In fact, client programmers may not even know that the exception co
thrown. eg, StringIndexOutOfBoundsException thrown by String's charAt() method· Checked exceptions must b
compile time. Runtime exceptions do not need to be. Errors often cannot be.
A checked exception is some subclass of Exception (or Exception itself), excluding class RuntimeException and i
subclasses.Making an exception checked forces client programmers to deal with the possibility that the exceptio
thrown. eg, IOException thrown by java.io.FileInputStream's read() method·Unchecked exceptions are Runtime
and any of its subclasses. Class Error and its subclasses also are unchecked. With an unchecked exception, how
compiler doesn't force client programmers either to catch the
exception or declare it in a throws clause. In fact, client programmers may not even know that the exception co
thrown. eg, StringIndexOutOfBoundsException thrown by String's charAt() method· Checked exceptions must b
compile time. Runtime exceptions do not need to be. Errors often cannot be.
When a class defines a method using the same name, return type, and arguments as a method in its superclass
tants and instance methods, but cannot implement default behavior and all methods are implicitly abstract. An interface h
their resources can be reclaimed and reused. A Java object is subject to garbage collection when it becomes unreachable
resources. Without synchonization, it is possible for one thread to modify a shared variable while another thread is in the
more advantageous, 'cause when you are going for multiple inheritance..the only interface can help.
 a copy of the value to be passed. 

p allows null values as key and value whereas Hashtable doesnt allow). HashMap does not guarantee that the order of the

he class itself, has no return type, and is invoked using the new operator. A method is an ordinary member function of a c
ows you to walk through a collection of objects, operating on each object in turn. Remember when using Iterators that the
vate : Private variables or methods may be used only by an instance of the same class that declares the variabl
t be instantiated (ie, you may not call its constructor), abstract class may contain static data. Any class with an abstract m
s that you can use them without creating an instance of a class.Static methods are implicitly final, because overriding is d
ass is inherited. You can't change value of a final variable (is a constant).

the program name.

NullPointerException on attempting to print args.length.

n method only in the class whose name you have mentioned. Hence there is not conflict amongst the multiple classes havi

e method in the class overrides the method in the superclass.When the method is invoked for an object of the class, it is t
abstract. An interface has all public members and no implementation. An abstract class is a class which may have the usua
becomes unreachable to the program in which it is used.
nother thread is in the process of using or updating same shared variable. This usually leads to significant errors.

e that the order of the map will remain constant over time. HashMap is unsynchronized and Hashtable is synchronized.

member function of a class. It has its own name, a return type (which may be void), and is invoked using the dot operato
using Iterators that they contain a snapshot of the collection at the time the Iterator was obtained; generally it is not advis
t declares the variable or method, A private feature may only be accessed by the class that owns the feature. p
ass with an abstract method is automatically abstract itself, and must be declared as such.A class may be declared abstra
because overriding is done based on the type of the object, and static methods are attached to a class, not an object. A sta

e multiple classes having main method.

bject of the class, it is the new definition of the method that is called, and not the method definition from superclass. Meth
hich may have the usual flavors of class members (private, protected, etc.), but has some abstract methods.

ificant errors.

ble is synchronized.

using the dot operator.


generally it is not advisable to modify the collection itself while traversing an Iterator.
t owns the feature. protected : Is available to all classes in the same package and also available to all subclasse
may be declared abstract even if it has no abstract methods. This prevents it from being instantiated.
ass, not an object. A static method in a superclass can be shadowed by another static method in a subclass, as long as the

from superclass. Methods may be overridden to be more public, not more private.
lable to all subclasses of the class that owns the protected feature.This access is provided even to subclasses th

ubclass, as long as the original method was not declared final. However, you can't override a static method with a nonstat
even to subclasses that reside in a different package from the class that owns the protected feature. default :W

method with a nonstatic method. In other words, you can't change a static method into an instance method in a subclass.
ed feature. default :What you get by default ie, without any access modifier (ie, public private or protected).It m

e method in a subclass.
ate or protected).It means that it is visible to all within a particular package.

Anda mungkin juga menyukai