Java By AshokReddy

I have 6 years of experience as a Java Developer. I have to provide Free classes and Note Book. It is useful for Engineering students, Beginner Learner, Lecturer and Software fresher


Java By AshokReddy

11 months ago | [YT] | 0

Java By AshokReddy

Explain Non-ststic members execution flow with JVM Architecture?
≠======≠==============================

1. Once class is loaded into JVM Control comes to main method, Create the ref. variable memory

2. When we create an object, JVM allocates memory to all non-static variables with default value from top to bottom in the order they are defined.

Note:new keyword execution is completed means object creation.

3. In an object initialization, control comes to the constructor here first statement is super() keyword, it is call to super class constructor of java.lang.object class, here there is no logic in constructor then control back to current class after that Non-static variables initialization and Non-static block. execution in the order they are defined from top to bottom and control back to Constructor then executing the constructor logic.

Note:constructor execution is completed means object initialization is completed.

4. After constructor logic execution completed (obj.initialization) new keyword will return with new obj.reference, stored in ref.var after that ref.variable (nsm) pointing to object

5. Non-static method is executed only when we call.

11 months ago | [YT] | 0

Java By AshokReddy

Explain Non-static members execution with JVM ARCHITECTURE?

11 months ago | [YT] | 0

Java By AshokReddy

What is the out-put of below program?
----------------------------------------------------------------
class MyClass{

static {
System.out.println(" Static Block: SB1");
}

public static int a=100;

static {
System.out.println(" Static Variable a: "+ a);
System.out.println("Static Block: SB2");
}
public static void m1(){
System.out.println(" Static Method ");
}
public static void main (String[] args){
System.out.println(" Main Method ");
m1();
}

static {
System.out.println(" Static Block: SB3");
}
}

1 year ago (edited) | [YT] | 0

Java By AshokReddy

Sorry inconvenience...
Due to personal reasons unable to take the class from 18/May/2025 to 25/May/2025.

1 year ago | [YT] | 1

Java By AshokReddy

Access Modifiers in Java

1 year ago (edited) | [YT] | 1

Java By AshokReddy

Understanding Java Main() Method

1 year ago (edited) | [YT] | 2

Java By AshokReddy

Identifiers in Java

1 year ago (edited) | [YT] | 3