What is non static block in java
Answer Posted / srinivasa
Instance methods are called non static blocks. Because we
can't call them without creating the object.Constructor is
also a non static block. Non Static means other than the
static block and static methods in a class . So we ca the
above two as non static block.
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
What is ide with example?
What is a two-pass assembler?
Write a program to print all permutations of string?
Write a function to find out longest palindrome in a given string?
Why runnable interface is used in java?
Can we catch more than one exception in single catch block?
When will you define a method as static?
what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread
Is linked list a linear or non-linear data structure?
Name few java 8 annotations ?
What is hashmap and map?
In java how do we copy objects?
What are 4 pillers of object orinted programming?
Write a method that will remove given character from the string?
How do you do absolute value in java?