Java Interview Helper
Home
About Me
Menu
Its all About:
Java
Tuesday, May 13, 2014
static blank final variable
By
Praveesh
11:53 PM
static
,
static blank variable
,
static variable
Leave a Comment
A static final variable that is not initialized at the time of declaration is known as static blank final variable. It can be initialized only in static block.
0 comments:
Post a Comment
Newer Post
Older Post
Home
Search This Blog
Popular Posts
What is the output for the below piece of Code? #1
Question : public class StringTest { public static void main(String args[]) { String s = "...
Can we overload main() method?
YES
Generate Given Output #1
Question: public class Test { public static void main(String[] args) { System. out .println( ...
static blank final variable
A static final variable that is not initialized at the time of declaration is known as static blank final variable. It can be initialized...
What if the static modifier is removed from the signature of the main method?
Program compiles. But at runtime throws an error "NoSuchMethodError".
Restrictions for static method
There are two main restrictions for the static method. They are: The static method can not use non static data member or call non-stat...
If no arguments are passed on the Commandline...
String array of main method will be empty, NOT NULL!
Memory Areas allocated by JVM
Class (Method) Area - Stores class structures such as runtime constant pool, method data, method code etc. Heap - Runtime memory area whe...
What is the output for the below piece of Code? #3
Question: class Simple{ public static void main(String args[]){ String s=50+30+ "Sachin" +40+40; S...
Is Empty .java file name a valid source file name?
YES. Save a java file as " .java " Compile it as " javac .java " Run it as " java className " [where cl...
Blog Archive
▼
2014
(14)
►
October
(2)
▼
May
(12)
What is the output for the below piece of Code? #3
What is the output for the below piece of Code? #2
What is the output for the below piece of Code? #1
static blank final variable
What is blank or uninitialized final variable?
Can we override static method?
Can we overload main() method?
What if the static modifier is removed from the si...
Restrictions for static method
If no arguments are passed on the Commandline...
Is Empty .java file name a valid source file name?
Memory Areas allocated by JVM
0 comments:
Post a Comment