Answer Posted / sathish kumar.s
1.In java everthing is not an object.
2.because we are using the pritive data types to make a task
(program).
E.g, in addition of numbers, we are declaring the data type
as int, not an object. so it's not 100% pure OOP's.
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
If an object reference is set to null, will the garbage collector immediately free the memory held by that object?
Can a class have more than one object?
public class Test { public static void main(String[] args) { int countA = 0; int countB = 0; int countC = 0; int countD = 0; int countE = 0; int countF = 0; int countG = 0; int countH = 0; int countI = 0; int countJ = 0; int countK = 0; int countL = 0; int countM = 0; int countN = 0; int countO = 0; int countP = 0; int countQ = 0; int countR = 0; int countS = 0; int countT = 0; int countU = 0; int countV = 0; int countW = 0; int countX = 0; int countY = 0; int countZ = 0; } } Can anybody tell me any alternate solution(like loop or something) to automate this initialization process. Ex:- for(char chr='A';chr<='Z'; chr++) { (int) String "count"+chr = 0; }
What is thread life cycle in java?
What is flush () in java?
What is parsing and its types?
Is empty in java?
Can a method be overloaded based on different return type but same argument type?
How do you make an arraylist empty in java?
What is an object in java?
Does sprintf add a null terminator?
What is data type example?
What is meant by 'Class access modifiers'?
Can we override static methods in java?
What are keywords and reserved words in java?