-
Implementing Pagination
How we implement pagination in j2ee
-
Are true and false keywords
The values true and false are not keywords.
-
-
For which statements does it make sense to use a label
The only statements for which it makes sense to use a label are those statements that canenclose a break or continue statement.
-
Is "abc" a primitive value
The String literal "abc" is not a primitive value. It is a String object.
-
-
Use of Static
What is the use of static in (public static void main string args[])
-
System is a class or a package?
class Test
{
public static void main(String... a)
{
System.out.println("hello world");
}
}
In the above code if we write "s" of String class in lowercase, it gives an error of class not found, but if we write "S" of "System" class in lower case it gives an error package not found.
why? -
-
Why compiler does not provide default constructor ?
Why compiler does not provide default constructor if there is any parametrized constructor is provided by programmer.?
-
MVC Advantages
What is MVC and what are its advantages?
-
-
How many threads at a time can access a monitor?
A) oneB) twoC) noneD) three
-
-
How to find size of string in java
How to know that a string require how much bytes in memory......
Ex. String s="abc";
String s=new String("abc");
How much memory is used for s and s2 -
What is the difference between a Scrollbar and a ScrollPane
A Scrollbar is a Component, but not a Container. A ScrollPane is a Container. AScrollPane handles its own events and performs its own scrolling.
-
Java object variable and class variable
What is the difference between object variable and class variable..?
-
Which arithmetic operations can result in the throwing of an ArithmeticException
Integer / and % can result in the throwing of an ArithmeticException.
-
Advantage of java
What is the main advantage of java when compared to other programing languages...?
-
Java valueOf( ) method
What is the use of valueOf( ) method?
Java Interview Questions
Ans