What are blocks?.
blocks is a group of single and compound statements
between the braces { }
class Amit
{
Amit()
{
Sysem.out.println("constructor");
}
{//begin block instance itializer block
System.out.prinln("amit");
}//end the block
psvm(String [] args)
{
boolean b=true;
if(b)
{//begin block
System.ou.println("boolean");
}//end of block
.
.
.//crete objec in psvm
.
Is This Answer Correct ? | 2 Yes | 0 No |
Write a program to print fibonacci series up to count 10.
What does the “static” keyword mean? Can you override private or static method in java?
write a class to input 2 points by the user & check the line maked by the points is horizontal,vertical or rectangle?
How do you reverse a list?
What is integer parseint?
What is update method and when it is called?
Give some features of interface?
What are the benefits of java?
What is module with example?
Explain the meaning of java applet.
Can you override static methods?
what is web.xml?and its use?