Skip to content

Instantly share code, notes, and snippets.

@nherbaut
Created September 28, 2023 12:08
Show Gist options
  • Save nherbaut/7d2e671c85856dd90ae2a5e3e59fbfdd to your computer and use it in GitHub Desktop.
Save nherbaut/7d2e671c85856dd90ae2a5e3e59fbfdd to your computer and use it in GitHub Desktop.
L2.2.4 Primitif ou pas?

Laquelle de ces variables n'est pas un type primitif ? f, x, a, b ?

public class Thing {
private int a;
public Thing(int x) {
a = x;
}
public int geta() {
return a ;
}
public void print() {
int b = 4 ;
System.out.println(geta() + " " + b);
}
public static void main(String ...args){
}
}
@nherbaut
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment